From 1160cd0262e29cae46a39610dd0160aa497d7a58 Mon Sep 17 00:00:00 2001 From: florinbilt <160469273+florinbilt@users.noreply.github.com> Date: Tue, 27 Feb 2024 15:02:12 +0200 Subject: [PATCH] 3305 - Make the length of the short revision hash constant across Treeherder (#7914) * 3305 - Make the length of the short revision hash constant with bugzilla * 3305 - Make the length of the short revision hash constant with bugzilla --- tests/ui/perfherder/graphs-view/graphs_view_test.jsx | 4 ++-- ui/perfherder/graphs/GraphTooltip.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ui/perfherder/graphs-view/graphs_view_test.jsx b/tests/ui/perfherder/graphs-view/graphs_view_test.jsx index 5da39913a..521600f83 100644 --- a/tests/ui/perfherder/graphs-view/graphs_view_test.jsx +++ b/tests/ui/perfherder/graphs-view/graphs_view_test.jsx @@ -206,7 +206,7 @@ test('Using select query param displays tooltip for correct datapoint', async () const graphTooltip = await waitFor(() => getByTestId('graphTooltip')); const expectedRevision = '3afb892abb74c6d281f3e66431408cbb2e16b8c4'; const revision = await waitFor(() => - getByText(expectedRevision.slice(0, 13)), + getByText(expectedRevision.slice(0, 12)), ); const repoName = await waitFor(() => getByTestId('repoName')); const platform = await waitFor(() => getByTestId('platform')); @@ -226,7 +226,7 @@ test('Using select query param displays tooltip for correct datapoint with repli const graphTooltip = await waitFor(() => getByTestId('graphTooltip')); const expectedRevision = '3afb892abb74c6d281f3e66431408cbb2e16b8c4'; const revision = await waitFor(() => - getByText(expectedRevision.slice(0, 13)), + getByText(expectedRevision.slice(0, 12)), ); const repoName = await waitFor(() => getByTestId('repoName')); const platform = await waitFor(() => getByTestId('platform')); diff --git a/ui/perfherder/graphs/GraphTooltip.jsx b/ui/perfherder/graphs/GraphTooltip.jsx index 3aa4d0747..e394848fd 100644 --- a/ui/perfherder/graphs/GraphTooltip.jsx +++ b/ui/perfherder/graphs/GraphTooltip.jsx @@ -212,7 +212,7 @@ const GraphTooltip = ({
- {dataPointDetails.revision.slice(0, 13)} + {dataPointDetails.revision.slice(0, 12)} {' '} {(dataPointDetails.jobId || prevRevision) && '('} {dataPointDetails.jobId && (