Skip to content

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:

Untitled

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

  1. Enable the vulnerability_report_pagination feature flag:
Feature.enable(:vulnerability_report_pagination)` | rails c
  1. Go to the vulnerability report for a project. Verify that the pagination buttons are shown.

  2. Click on the pagination buttons and verify that the page changes and the URL is updated with the cursor information (either before or after).

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 #350343 (closed)

Edited by Daniel Tian

Merge request reports

Loading