Skip to content

Update correct presets for tool filter component

Samantha Ming requested to merge sming-update-presets-for-tool-filter into master

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
2022-08-18_at_9.47_PM 2022-08-18_at_9.48_PM

How to set up and validate locally

  1. Enable the FF echo "Feature.enable(:refactor_vulnerability_tool_filter)" | rails c
  2. Project view (Project > Security & Compliance > Vulnerability report)
  3. 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.

Edited by Samantha Ming

Merge request reports

Loading