Add group-by to vulnerabilities over time

What does this MR do and why?

This MR enhances a security dashboard panel that shows vulnerability trends over time. It adds the ability to view vulnerabilities grouped by either "severity level" (Critical, High, Medium, etc.) or "report type" (SAST, Dependency Scanning, etc.).

Additional improvements include better error handling that distinguishes between actual errors and cases where no data is available, showing appropriate messages for each situation.

References

Screenshots or screen recordings

Before After
Screenshot_2025-07-29_at_8.52.02_pm Screenshot_2025-07-29_at_8.50.38_pm

How to set up and validate locally

  1. Enable the feature flag http://gdk.test:3000/rails/features/group_security_dashboard_new
  2. Navigate to a group's security dashboard
  3. Click on the group-by buttons and verify that the GraphQL query is being fetched with the correct arguments

MR acceptance checklist

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

Related to #549107 (closed)

Edited by David Pisek

Merge request reports

Loading