From c83a711b8d143f5b9d76b65402046dbaabcdd332 Mon Sep 17 00:00:00 2001 From: Bastien Abadie Date: Tue, 13 Aug 2019 13:59:12 +0200 Subject: [PATCH] Remove demo loading --- src/components/Reportees/index.jsx | 8 -------- src/utils/artifacts.js | 12 ++++++++++++ src/views/Main/index.jsx | 9 +-------- .../components/__snapshots__/Reportees.test.jsx.snap | 9 --------- 4 files changed, 13 insertions(+), 25 deletions(-) diff --git a/src/components/Reportees/index.jsx b/src/components/Reportees/index.jsx index 0f44776..9123ea8 100644 --- a/src/components/Reportees/index.jsx +++ b/src/components/Reportees/index.jsx @@ -11,11 +11,6 @@ const styles = { }; class Reportees extends React.PureComponent { - getTaskclusterDemo() { - const { taskclusterDemo } = this.props; - return taskclusterDemo; - } - getMergedProps() { const { metrics, partialOrg, ldapEmail } = this.props; @@ -100,7 +95,6 @@ class Reportees extends React.PureComponent { return (
-
{this.getTaskclusterDemo()}
import('../../components/BugzillaComponents')); @@ -94,7 +93,7 @@ class MainContainer extends Component { }); }; - async fetchData() { + fetchData() { const { context } = this; const userSession = context && context.getUserSession(); if (userSession) { @@ -104,10 +103,6 @@ class MainContainer extends Component { const ldapEmail = new URLSearchParams(location.search).get('ldapEmail') || (userSession && userSession.email); this.setState({ ldapEmail }); this.retrieveData(userSession, ldapEmail); - - // Demo artifact loading - const taskclusterDemo = await loadArtifact(userSession, 'project.relman.production.bugzilla-dashboard.latest', 'project/relman/bugzilla-dashboard/product_component_data.json'); - this.setState({ taskclusterDemo }); } else { this.setState(DEFAULT_STATE); } @@ -242,7 +237,6 @@ class MainContainer extends Component { componentDetails, bugzillaComponents, ldapEmail, - taskclusterDemo, partialOrg, teamComponents, selectedTabIndex, @@ -275,7 +269,6 @@ class MainContainer extends Component { path="/reportees" component={Reportees} ldapEmail={ldapEmail} - taskclusterDemo={taskclusterDemo} partialOrg={partialOrg} metrics={reporteesMetrics} /> diff --git a/test/components/__snapshots__/Reportees.test.jsx.snap b/test/components/__snapshots__/Reportees.test.jsx.snap index ad36af7..7c68da4 100644 --- a/test/components/__snapshots__/Reportees.test.jsx.snap +++ b/test/components/__snapshots__/Reportees.test.jsx.snap @@ -4,9 +4,6 @@ exports[`renders Manager who has reportees & metrics 1`] = `
-
-    loading
-  
@@ -726,9 +723,6 @@ exports[`renders Manager who has reportees 1`] = `
-
-    loading
-  
@@ -1448,9 +1442,6 @@ exports[`renders Someone with no reportees 1`] = `
-
-    loading
-