Update correct presets for tool filter component
What does this MR do and why?
This MR is part of the vulnerability tool filter migration to GraphQL. The Project, Group, and Instance views will use a shared component and populate the dropdown menu items from the vulnerability scanner GraphQL query. Please see the Epic for details > Refactor and consolidate all "tool" dropdowns t... (&8407 - closed)
Now that the project view uses the same component as the group and instance view; all 3 use the tool_filter.vue
component. We need to update the project view to use the same presets, so the filtering of vulnerabilities will work.
MR | Changes |
---|---|
This MR | Ensure the filtered vulnerabilities list is displayed when a tool option is selected |
!95754 (merged) | Ensure the filtered vulnerabilities list is displayed in the presence of a query string |
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Enable the FF
echo "Feature.enable(:refactor_vulnerability_tool_filter)" | rails c
- Project view (Project > Security & Compliance > Vulnerability report)
- Under the tool dropdown, select a report type, the vulnerabilities will be filtered accordingly.
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.
Edited by Samantha Ming