503371 / Create Report Type Filter
What does this MR do and why?
This MR creates a separate Report Type Vulnerability Report Filter. This Report Type filter is the replacement for the Tool filter, and will only be responsible for filtering the Report Types. Before this change, we had both the Scanner and Report Type filters bundled under the Tool filter, which wasn't very clear for users.
For now, these changes are behind a Feature Flag (vulnerability_report_type_scanner_filter). Once we are fully finished with #503371 (closed) , we will remove the ToolToken component completely in this issue, and will remove the feature flag logic as well.
References
- Related Issue: #515303 (closed)
- Main Parent Issue: #503371 (closed)
- Issue to remove the ToolToken: #519733 (closed)
- MR where we created the
Scannerfilter: !179416 (merged)
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
Screen recording:
| Before | After |
|---|---|
| xxx | ![]() |
| xxx | ![]() |
| xxx | ![]() |
How to set up and validate locally
- In your Rails console, enable the feature flag by running:
Feature.enable(:vulnerability_report_type_scanner_filter) - Open your browser and visit
http://gdk.test:3000/gitlab-org/security-reports/-/security/vulnerability_reportIf no vulnerability reports appear, additional setup may be needed. Follow the steps here. - Look for the
Report Typeoption when you open the Search/Filter menu. It should appear alongside other filter options.
- After clicking
Report Type, you'll see a list of available Report Types you can filter by. Please note that only the Report Types should be shown, not the scanners.
- Pick any Report Type from the list. Only the reports that have this Report Type, will now be shown. When looking at the Filter/Search bar, you should see: "Report Type || [your selected report type]":




