Skip to content

AI Impact: Add Code Suggestion Unique users tile

What does this MR do and why?

Introduces the Code suggestions unique users tile (last 30 days) to the the AI Impact dashboard.

This MR introduces the ai_impact_over_time.js data source, which will be used for querying further ai impact metrics over time.

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-07-26_at_23.12.48 Screenshot_2024-07-26_at_14.05.53

How to set up and validate locally

Feature Flags

# enables the UI table
Feature.enable(:ai_impact_analytics_dashboard) 

# enable clickhouse
Feature.enable(:clickhouse_data_collection)
Feature.enable(:event_sync_worker_for_click_house)

Validation Steps

  1. Please make sure you have a GitLab Ultimate license.
  2. Ensure you have Clickhouse configured
  3. Enable the feature flags above.
  4. Seed data for the table: FILTER=ai_usage_stats bundle exec rake db:seed_fu
  5. Visit the groups analytics dashboard page: (ex. http://gdk.test:3000/groups/flightjs/-/analytics/dashboards)
  6. Visit the projects analytics dashboard page: (ex. http://gdk.test:3000/flightjs/Flight/-/analytics/dashboards)

Related to #460826 (closed)

Edited by Ezekiel Kigbo

Merge request reports