Skip to content

Commit

Permalink
Bug 1840394 - Use signature_id instead of signature_hash for graphs l…
Browse files Browse the repository at this point in the history
…ink. (#7876)

* Bug 1840394 - Use signature_id instead of signature_hash for CompareView graphs link.

* Resolve same issue in the CompareSubtestsView.
  • Loading branch information
gmierz committed Nov 17, 2023
1 parent be24884 commit e641af6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions ui/perfherder/compare/CompareSubtestsView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ class CompareSubtestsView extends React.PureComponent {
});
}
const signatureHash = !oldResults
? newResults.signature_hash
: oldResults.signature_hash;
? newResults.signature_id
: oldResults.signature_id;

links = createGraphsLinks(
this.props.validated,
Expand Down Expand Up @@ -139,9 +139,13 @@ class CompareSubtestsView extends React.PureComponent {
cmap.name = testName;
if (oldResults !== undefined) {
cmap.suite = oldResults.suite;
cmap.baseColumnMeasurementUnit = oldResults.measurement_unit;
cmap.app = oldResults.application;
}
if (newResults !== undefined) {
cmap.suite = newResults.suite;
cmap.newColumnMeasurementUnit = newResults.measurement_unit;
cmap.app = newResults.application;
}

if (
Expand Down
4 changes: 2 additions & 2 deletions ui/perfherder/compare/CompareView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ class CompareView extends React.PureComponent {
});
}
const signatureHash = !oldResults
? newResults.signature_hash
: oldResults.signature_hash;
? newResults.signature_id
: oldResults.signature_id;
links = createGraphsLinks(
this.props.validated,
links,
Expand Down

0 comments on commit e641af6

Please sign in to comment.