Support all Value stream dashboard metrics in the AI dashboard table

What does this MR do and why?

Adds support for the remaining VSD metrics in the 6-month metric table used for the AI impact dashboard. Doing so will allow us to migrate the VSD to the same metric table, increasing the viewable data for the VSD, while reducing the number of similar metric tables we need to support.

Adds new metrics:

  • Time to restore service
  • Lead time for changes
  • Issues created
  • Issues closed
  • Deploys
  • High vulnerabilities over time

References

Screenshots or screen recordings

No visible changes to the AI impact dashboard, but this is what the table looks like with all metrics enabled

all_the_metrics

How to set up and validate locally

  1. Ensure that you are using GitLab Ultimate
  2. Configure your GDK to use ClickHouse
  3. Enable this patch to apply the Duo AddOn, and show all metrics in a single table
diff --git a/ee/app/models/ee/user.rb b/ee/app/models/ee/user.rb
index e7243a29cc49..5b818ad77df4 100644
--- a/ee/app/models/ee/user.rb
+++ b/ee/app/models/ee/user.rb
@@ -541,7 +541,7 @@ def assigned_to_duo_enterprise?(container)
         .for_duo_enterprise
         .active
         .by_namespace(namespace)
-        .assigned_to_user(self).exists?
+        .assigned_to_user(self).exists? || true
     end
 
     def assigned_to_duo_pro?(container)
diff --git a/ee/lib/gitlab/analytics/ai_impact_dashboard/dashboard.yaml b/ee/lib/gitlab/analytics/ai_impact_dashboard/dashboard.yaml
index 18edfb352082..71eae5d27bc2 100644
--- a/ee/lib/gitlab/analytics/ai_impact_dashboard/dashboard.yaml
+++ b/ee/lib/gitlab/analytics/ai_impact_dashboard/dashboard.yaml
@@ -35,18 +35,10 @@ panels:
       height: 1
     options: {}
   - title: 'Lifecycle metrics for the %{namespaceName} %{namespaceType}'
-    visualization: ai_impact_lifecycle_metrics_table
+    visualization: ai_impact_table
     gridAttributes:
       yPos: 1
       xPos: 0
       width: 12
-      height: 4
-    options: {}
-  - title: 'AI usage metrics for the %{namespaceName} %{namespaceType}'
-    visualization: ai_impact_ai_metrics_table
-    gridAttributes:
-      yPos: 5
-      xPos: 0
-      width: 12
-      height: 4
+      height: 10
     options: {}
  1. Navigate to the Analytics dashboard page for any group (ex. http://gdk.test:3000/groups/flightjs/-/analytics/dashboards)
  2. Select the AI impact analytics dashboard

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 #541330 (closed)

Edited by Alex Pennells

Merge request reports

Loading