Skip to content

Fix project filter not filtering vulnerability list on page load

What does this MR do and why?

This MR fixes a bug with the group vulnerability report's project filter where restoring the projects from the URL will show them as selected in the project filter, but the vulnerability list isn't actually filtered by them:

Untitled

How to set up and validate locally

  1. Enable the refactor_vulnerability_filters feature flag:
Feature.enable(:refactor_vulnerability_filters) | rails c
  1. Go to a group that has more than 1 project with vulnerabilities and view its vulnerability report.

  2. Filter by a project and verify that the vulnerability list is filtered by only that project.

  3. Refresh the page and verify that the vulnerability is still only filtered by that project.

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

Edited by Daniel Tian

Merge request reports