Add Status filter to the filtered search component
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
How to set up and validate locally
- Fork https://gitlab.com/gitlab-examples/security/security-reports/
- Create vulnerabilities by running a pipeline against the default branch
- Go the Secure > Vulnerability Report inside the project
- Make sure to enable the feature flag:
echo "Feature.enable(:vulnerability_report_advanced_filtering)" | rails c
- See the Filtered Search
Related to #433363 (closed)
Edited by Savas Vedova