Reset pagination on grouping change
What does this MR do and why?
What
Reset pagination on grouping change
- Resets router pagination (before/after) when grouping adherences
Why
Fixes an issue with pagination not resetting prev/next per page selectors were used prior
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Setup Adherences
- Visit group settings and enable "Prevent approval by author" from the 'Merge Request Approval' section.
- This will create a couple of rows inside the
project_compliance_standards_adherence
table.
Visit Standard Adherence page
- Visit a group, under Secure (new UI) or Security & Compliance (old UI) > Compliance center
- Before grouping, select the next page of results
- Use the grouping dropdown, observe per page resets and no prev option is available
Related to #450935 (closed)
Edited by Jay Montal