Skip to content

Reset pagination on grouping change

Jay Montal requested to merge 450935_jmontal_reset_pagination_on_grouping into master

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

  1. Visit group settings and enable "Prevent approval by author" from the 'Merge Request Approval' section.
  2. This will create a couple of rows inside the project_compliance_standards_adherence table.

Visit Standard Adherence page

  1. Visit a group, under Secure (new UI) or Security & Compliance (old UI) > Compliance center
  2. Before grouping, select the next page of results
  3. Use the grouping dropdown, observe per page resets and no prev option is available

Related to #450935 (closed)

Edited by Jay Montal

Merge request reports