Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1352207 - Compare view should show a tooltip on bars saying whether the result was better or worse #2333

Merged
merged 1 commit into from Apr 11, 2017

Conversation

SJasoria
Copy link
Contributor

@SJasoria SJasoria commented Apr 10, 2017

This change is Reviewable

Copy link
Contributor

@wlach wlach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff! Just one small nit and we can merge this.

@@ -82,7 +82,10 @@
replicates="compareResult.newRuns"></ph-average>
</td>
<td ng-class="$ctrl.getCompareClasses(compareResult)">
<span ng-if="compareResult.delta" class="detail-hint" uib-tooltip="Mean difference: {{compareResult.delta|displayPrecision}} (= {{compareResult.deltaPercentage|displayPrecision}}%)">
<span ng-if="compareResult.delta && compareResult.newIsBetter" class="detail-hint" uib-tooltip="Mean difference: {{compareResult.delta|displayPrecision}} (= {{compareResult.deltaPercentage|displayPrecision |absoluteValue}}% better)">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove the space between "displayPrecision and " " |absoluteValue" here and below?

i.e. displayPrecision |absoluteValue -> displayPrecision|absoluteValue

@@ -183,3 +183,9 @@ treeherder.filter('displayPrecision', function() {
return parseFloat(input).toFixed(2);
};
});

treeherder.filter('absoluteValue', function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a pain to have to create a filter just for this. :/

(I can't find a better way though, so this is fine)

@wlach wlach merged commit 39e5e7c into mozilla:master Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants