Skip to content

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

  1. Navigate to a group's dependency list
  2. Go to a page past the first one
  3. Apply a filter
  4. 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.

Related to #433247 (closed)

Edited by David Pisek

Merge request reports