Open Bug 1756774 Opened 2 years ago Updated 1 year ago

Tests View - Changing the framework should reset the table to page 1

Categories

(Tree Management :: Perfherder, defect, P3)

Tracking

(Not tracked)

People

(Reporter: bacasandrei, Unassigned, Mentored)

References

Details

(Whiteboard: [fxp])

Reproduction:

Expectation:
The page number resets to 1 so that we can see the first page of results for browsertime.

Actual:
The page number remains 2 and the second page of results is displayed instead of the first page.

Jira ticket: https://mozilla-hub.atlassian.net/browse/FXP-1817

Mentor: beatrice.acasandrei
Assignee: nobody → natka.tylka
Assignee: natka.tylka → nobody

This error is present when switching between any frameworks

Hi there :)
I checked the issue. To solve this issue, I think we can add this code autoResetPage={true} in place[0].

p.s)
There is an improvement while checking the code.
When requesting data, there is no pagination function on the server side[1].
According to the page count of the frontend side, it does not extract only 20 data but searches for the entire data(i.e, in this case[1], searching the 262 counts). The entire framework data is searched in the DB.
If the loading of the first screen is too slow, consider adding a pagination function to the server side. (Of course, there will be changes to the frontend side.)

[0]
https://github.com/mozilla/treeherder/blob/79ede943b2e726c88d7753bca40f43d349781fc5/ui/perfherder/tests/TestsTable.jsx#L112-L120
[1]
https://treeherder.mozilla.org/api/performance/validity-dashboard/?framework=10

You need to log in before you can comment on or make changes to this bug.