Add the Pipeline Metrics table to AI Impact
What does this MR do and why?
Add the Pipeline Metrics table to AI Impact
Adds the pipeline metrics table visualization to the default YAML configuration for the AI Impact dashboard.
References
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Please make sure that you're on the GitLab Ultimate plan.
- Configure your GDK to use ClickHouse
- 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) - Apply the patch below to
- Mock AI Impact analytics dashboard permissions
- Mock the number of Duo Pro seats included in your subscription (otherwise some metrics will show as
0%)
- Seed data:
SEED_GITLAB_DUO=1 FILTER=gitlab_duo bundle exec rake db:seed_fu - Navigate to the AI Impact analytics dashboard for the new group created by the above seeder:
http://${LOCAL_INSTANCE}/groups/gitlab-duo/-/analytics/dashboards/ai_impact - Verify that the Pipeline Metrics table has been added to the dashboard.
Patch
diff --git a/ee/app/models/ee/user.rb b/ee/app/models/ee/user.rb
index 1d350dc8bfc8c..1e14ed4b690f4 100644
--- a/ee/app/models/ee/user.rb
+++ b/ee/app/models/ee/user.rb
@@ -526,6 +526,7 @@ def using_gitlab_com_seat?(namespace)
end
def assigned_to_duo_enterprise?(container)
+ return true
namespace = ::Gitlab::Saas.feature_available?(:gitlab_duo_saas_only) ? container.root_ancestor : nil
GitlabSubscriptions::AddOnPurchase
@@ -536,6 +537,7 @@ def assigned_to_duo_enterprise?(container)
end
def assigned_to_duo_pro?(container)
+ return true
namespace = ::Gitlab::Saas.feature_available?(:gitlab_duo_saas_only) ? container.root_ancestor : nil
GitlabSubscriptions::AddOnPurchase
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 #550356
Edited by Ezekiel Kigbo

