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

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:

Untitled

Before After
xxx Screenshot_2025-02-17_at_14.04.24
xxx Screenshot_2025-02-17_at_14.04.35
xxx Screenshot_2025-02-18_at_14.26.36

How to set up and validate locally

  1. In your Rails console, enable the feature flag by running: Feature.enable(:vulnerability_report_type_scanner_filter)
  2. Open your browser and visit http://gdk.test:3000/gitlab-org/security-reports/-/security/vulnerability_report If no vulnerability reports appear, additional setup may be needed. Follow the steps here.
  3. Look for the Report Type option when you open the Search/Filter menu. It should appear alongside other filter options. Screenshot_2025-02-17_at_14.04.24
  4. 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. Screenshot_2025-02-17_at_14.04.35
  5. 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]":
Edited by Charlie Kroon

Merge request reports

Loading