Skip to content

Commit

Permalink
Removed useless 'other' category
Browse files Browse the repository at this point in the history
  • Loading branch information
kevPo committed Oct 26, 2016
1 parent 34ea01e commit 7e5ed6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion lib/static/less/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ a:focus {
margin: 8px;
text-align: center;
vertical-align: top;
width: 81px;
width: 90px;
}

path.color0 {
Expand Down
13 changes: 0 additions & 13 deletions lib/static/static/js/velocityMetrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
metrics.categories.push(getCategoryData("FEATURES", featureCategory, velocityMilestones, totalPoints));
metrics.categories.push(getCategoryData("RESEARCH", researchCategory, velocityMilestones, totalPoints));
metrics.categories.push(getCategoryData("TECHNICAL DEBT", technicalDebtCategory, velocityMilestones, totalPoints));
metrics.categories.push(getCategoryDataForOther(metrics.categories));

metrics.categories.sort(descendingCategory);

Expand Down Expand Up @@ -88,18 +87,6 @@

return category;
}

function getCategoryDataForOther(categories) {
var category = { title: "OTHER", count: 0 };
var totalPercentage = categories.map(function(category) {
return category.count;
}).reduce(sum);

if (totalPercentage < 100)
category.count = 100 - totalPercentage;

return category;
}

function getVelocityMilestones(data) { return data.slice(-milestonesInVelocity); };
function sum(a,b) { return a+b; };
Expand Down

0 comments on commit 7e5ed6a

Please sign in to comment.