Added "DORA performers score" panel to VSD
What does this MR do and why?
Adds the "DORA performers score" panel to the Value Stream Dashboard behind the dora_performers_score_panel
feature flag.
Screenshots or screen recordings
Description | Screenshot |
---|---|
Default | |
Multiple panels | |
Data series tooltip | |
No score counts data series tooltip | |
Bar tooltip | |
Loading | |
Error | |
Unsupported project namespace error | |
No data |
How to set up and validate locally
- Please make sure that you have a GitLab Ultimate license
Feature.enable(:dora_performers_score_panel, <group-id>)
- Create a group and project(s)
- Seed cycle analytics data
- Seed dora metrics data
- For DoraPerformanceScoreCounts data, either run the script or apply the diff below.
- Visit the Value streams dashboard and verify that panel(s) appear(s) by default and using custom configuration
Seed Data
project = Project.find(<project-id>)
score1 = Dora::PerformanceScore.create(project: project, date: Time.current.to_date.beginning_of_month, deployment_frequency: 'high', lead_time_for_changes: 'high', time_to_restore_service: 'medium', change_failure_rate: 'low')
# etc etc
Dummy Data
diff --git a/ee/app/assets/javascripts/analytics/dashboards/components/dora_performers_score.vue b/ee/app/assets/javascripts/analytics/dashboards/components/dora_performers_score.vue
index f0f99c7375c4..a5b4fb0dbf3e 100644
--- a/ee/app/assets/javascripts/analytics/dashboards/components/dora_performers_score.vue
+++ b/ee/app/assets/javascripts/analytics/dashboards/components/dora_performers_score.vue
@@ -83,7 +83,26 @@ export default {
return this.$apollo.queries.groupDoraPerformanceScoreCounts.loading;
},
chartData() {
- return extractDoraPerformanceScoreCounts(this.groupDoraPerformanceScoreCounts?.items);
+ // return extractDoraPerformanceScoreCounts(this.groupDoraPerformanceScoreCounts?.items);
+
+ return [
+ {
+ name: __('High'),
+ data: [50, 75, 15, 5],
+ },
+ {
+ name: __('Medium'),
+ data: [24, 30, 55, 70],
+ },
+ {
+ name: __('Low'),
+ data: [27, 25, 80, 81],
+ },
+ {
+ name: __('Not included'),
+ data: [10, 13, 14, 15],
+ },
+ ];
},
doraMetrics() {
return DORA_PERFORMERS_SCORE_METRICS.map(({ label }) => label);
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #386843 (closed)
Edited by Rudy Crespo