Group deps: reset pagination when filtering
What does this MR do and why?
The search-filter submit event now resets the pagination to the first page. This ensures that when the user changes the search criteria, the results will be shown from the beginning. This prevents a bug that happens when the user applies filter criteria while being on a page that does not exist within the new filtered result.
Screenshots or screen recordings
Screen_Recording_2023-11-30_at_2.59.33_pm
How to set up and validate locally
- Navigate to a group's dependency list
- Go to a page past the first one
- Apply a filter
- Verify that after the fetch, the page is reset to the first one
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 #433247 (closed)
Edited by David Pisek