Skip to content

Commit

Permalink
Bug 1831945 - Handle replicates parameter in CompareSubtestsView. (#7713
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gmierz committed Jun 9, 2023
1 parent 4d7f863 commit 0c2218d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/perfherder/compare/CompareSubtestsView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class CompareSubtestsView extends React.PureComponent {
parent_signature: parentSignature,
framework,
repository,
replicates: false,
});

getQueryParams = (timeRange, framework) => {
Expand All @@ -29,6 +30,7 @@ class CompareSubtestsView extends React.PureComponent {
newResultSet,
originalSignature,
newSignature,
replicates,
} = this.props.validated;

const originalParams = this.createQueryParams(
Expand All @@ -55,6 +57,12 @@ class CompareSubtestsView extends React.PureComponent {
framework.id,
);
newParams.revision = newRevision;

if (replicates) {
originalParams.replicates = true;
newParams.replicates = true;
}

return [originalParams, newParams];
};

Expand Down

0 comments on commit 0c2218d

Please sign in to comment.