Add GitLab Duo Code Suggestions acceptance by IDE chart

What does this MR do and why?

Adds GitLab Duo Code Suggestions acceptance by IDE panel to the GitLab Duo and SDLC trends analytics dashboard.

Screenshots or screen recordings

Before After
Screenshot 2025-12-04 at 3.22.44 PM.png Screenshot 2025-12-04 at 2.02.54 PM.png

How to set up and validate locally

  1. Please make sure that you're on the GitLab Ultimate plan (if necessary, request a license).
  2. Configure your GDK to use ClickHouse
  3. Make sure ClickHouse is being used for Analytics by running this in the Rails console: Gitlab::CurrentSettings.current_application_settings.update(use_clickhouse_for_analytics: true)
  4. Create a new project or select an existing one.
  5. Seed the project using its id in PROJECT_ID=STEP_4_PROJECT_ID FILTER=ai_usage_stats bundle exec rake db:seed_fu
  6. Go to the project, then navigate to Analytics Dashboard > GitLab Duo and SDLC trends in the sidebar menu
  7. Verify that the chart is rendering correctly*

*If no data is being displayed in the chart, trying changing the visualization's date range:

diff --git a/ee/lib/gitlab/analytics/ai_impact_dashboard/visualizations/code_suggestions_adoption_by_ide_chart.yaml b/ee/lib/gitlab/analytics/ai_impact_dashboard/visualizations/code_suggestions_adoption_by_ide_chart.yaml
index 1fb6c3a69eaa..b7bd81e886de 100644
--- a/ee/lib/gitlab/analytics/ai_impact_dashboard/visualizations/code_suggestions_adoption_by_ide_chart.yaml
+++ b/ee/lib/gitlab/analytics/ai_impact_dashboard/visualizations/code_suggestions_adoption_by_ide_chart.yaml
@@ -4,7 +4,7 @@ type: BarChart
 data:
   type: code_suggestions_acceptance_by_ide
   query:
-    dateRange: last_30_days
+    dateRange: last_180_days
 options:
   xAxis:
     name: "Suggestions accepted"

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

Edited by Rudy Crespo

Merge request reports

Loading