Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
Remove Portal stats
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Oct 11, 2020
1 parent 285a7f5 commit f35c43f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 22 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ process();
async function process() {
try {
const mentorshipStats = await bugzilla.getMentorshipStats();
const portalStats = await bugzilla.getPortalStats();
const budgetStats = await bugzilla.getBudgetStats();
const swagStats = await bugzilla.getSwagStats();

const data = {
mentorship: mentorshipStats,
portal: portalStats,
budget: budgetStats,
swag: swagStats,
};
Expand Down
12 changes: 0 additions & 12 deletions lib/bugzilla.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const _groupBy = require('lodash.groupby');

module.exports = {
getMentorshipStats,
getPortalStats,
getBudgetStats,
getSwagStats,
};
Expand Down Expand Up @@ -37,17 +36,6 @@ function getMentorshipStats() {
.then(sumByMonthAndYear);
}

function getPortalStats() {
debug('Getting portal stats..');
return fetch({
endpoint: 'bug',
product: 'Mozilla Reps',
component: 'reps.mozilla.org',
fields: 'creation_time,resolution',
})
.then(sumByMonthAndYear);
}

function getBudgetStats() {
debug('Getting budget request stats..');
return fetch({
Expand Down
1 change: 0 additions & 1 deletion ui/src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export default function App() {
<Switch>
<Route exact path="/" component={ Overview }/>
<Route exact path="/onboarding" component={ () => <Bugs data={ data.mentorship } title="Onboarding (Reps Applications)"/> }/>
<Route exact path="/portal" component={ () => <Bugs data={ data.portal } title="Portal (reps.mozilla.org)"/> }/>
<Route exact path="/budget" component={ () => <Bugs data={ data.budget } title="Budget Requests"/> }/>
<Route exact path="/swag" component={ () => <Bugs data={ data.swag } title="Swag Requests"/> }/>
<Route exact path="/activity" component={ () => <Activity data={ activityData } title="Activity"/> }/>
Expand Down
7 changes: 0 additions & 7 deletions ui/src/sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ export function Sidebar() {
<ListItemText primary="Onboarding"/>
</ListItem>

<ListItem button component={ AdapterLink } to="/portal">
<ListItemIcon>
<BugReportIcon/>
</ListItemIcon>
<ListItemText primary="Portal"/>
</ListItem>

<ListItem button component={ AdapterLink } to="/budget">
<ListItemIcon>
<BugReportIcon/>
Expand Down

0 comments on commit f35c43f

Please sign in to comment.