Skip to content

Add Status filter to the filtered search component

Savas Vedova requested to merge 433363-add-status-filter into master

What does this MR do and why?

  • Adds the Status Token to the Filtered Search component with DETECTED + CONFIRMED as default state
  • Adds a spec for the Vulnerability Report Filtered Search component (it was missing before)
  • Logic to select/unselect Status Token options

This MR does not:

  • Add a logic for query parameters
  • Add a logic for passing selected filters to the Vulnerability Report

I'll track these efforts in separate MRs.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

status-token

How to set up and validate locally

  1. Fork https://gitlab.com/gitlab-examples/security/security-reports/
  2. Create vulnerabilities by running a pipeline against the default branch
  3. Go the Secure > Vulnerability Report inside the project
  4. Make sure to enable the feature flag: echo "Feature.enable(:vulnerability_report_advanced_filtering)" | rails c
  5. See the Filtered Search

Related to #433363 (closed)

Edited by Savas Vedova

Merge request reports