Fixing import list pagination bug
What does this MR do and why?
Currently there's a minor bug where going to page 2 and switching per_page to 50 returns no records found, even when there are records.
This switches the behaviour to going back to page 1 whenever the per_page is changed.
This change is for both the import page
as well as the import history page
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before |
After |
---|---|
See the video in the correlated issue |
Also for the project history page:
Screen Recording 2023-09-19 at 1.28.36 PM.mov
How to set up and validate locally
- On the direct transfer page, have more than 20 groups
- Navigate to page 2 and switching per_page should bring you back to page 1
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #383851 (closed)
Edited by Max Fan