Use pagination for vulnerability report paging
What does this MR do and why?
This MR switches from infinite scrolling to pagination on the vulnerability report. We are doing this work so that we can remember the current page the user is on, so if they navigate away and back to it (or bookmark it), we will restore which page they were last looking at. See this video for more details:
Note that this MR has no tests yet because this is a feature we want to test against production first to see if it's something we want to go ahead with.
How to set up and validate locally
- Enable the
vulnerability_report_pagination
feature flag:
Feature.enable(:vulnerability_report_pagination)` | rails c
-
Go to the vulnerability report for a project. Verify that the pagination buttons are shown.
-
Click on the pagination buttons and verify that the page changes and the URL is updated with the cursor information (either
before
orafter
).
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 #350343 (closed)