Update pagination on the standards adherence table
What does this MR do and why?
What
Update pagination on the standards adherence table
Why
- Update pagination to use router
- Move pagination component to shared folder
- Use existing pagination component on standards adherence table
- Adds per page dropdown to select 20, 50, 100 items per page
- Update specs to use router
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Enable FFs
- In the rails console (
rails c
) enable the following features: -
adherence_report_ui
(Feature.enable(:adherence_report_ui)
) -
compliance_adherence_report
(Feature.enable(:compliance_adherence_report)
)
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
- Click
View details
to expand the sidebar component
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 #426479 (closed)
Edited by Jay Montal