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:
- Go to https://treeherder.mozilla.org/perfherder/tests
- Click on the Next button from the right side of the table. The page changes from 1 to 2.
- Change the framework talos to browsertime.
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
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Comment 1•1 year ago
|
||
This error is present when switching between any frameworks
Updated•1 year ago
|
Comment 2•1 year ago
|
||
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
Description
•