Skip to content

Ensure tool filtering works with query string

Samantha Ming requested to merge sming-ensure-filter-works-with-querystring 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)

When the page is loaded with a query string, the vulnerabilities will be re-rendered according to the related query value.

Note: You will notice a screen jump due to 2 GraphQL calls being made in the presence of a query string. This will be addressed in a follow-up issue > #370944 (closed)

Screenshots or screen recordings

2022-08-18_at_10.58_PM

tool-query-string

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. Group view (Group > Security & Compliance > Vulnerability report)
  4. Instance view (Menu > Security > Vulnerability Report)
  5. Under the tool dropdown, select a report type. This will update the query string.
  6. Refresh the page with the query string, the vulnerabilities will display a filtered version.

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