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:
How to set up and validate locally
- Enable the
refactor_vulnerability_filters
feature flag:
Feature.enable(:refactor_vulnerability_filters) | rails c
-
Go to a group that has more than 1 project with vulnerabilities and view its vulnerability report.
-
Filter by a project and verify that the vulnerability list is filtered by only that project.
-
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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #386318 (closed)
Edited by Daniel Tian