summaryrefslogtreecommitdiff
path: root/db/fixtures
diff options
context:
space:
mode:
authorTaurie Davis, Simon Knox and Adam Niedzielski <awesome@gitlab.com>2017-05-24 12:25:44 +0200
committerAdam Niedzielski <adamsunday@gmail.com>2017-06-01 17:37:21 +0200
commit26dde5f55f1dac2e6bea4f7e1dfa51c72dc756cb (patch)
treef0168cb9ad0be7c4bf8657a5321e5da0bda8e83b /db/fixtures
parentc72abcefe79dd906cbbf0088b442a8979e9fc746 (diff)
downloadgitlab-ce-26dde5f55f1dac2e6bea4f7e1dfa51c72dc756cb.tar.gz
Add Conversational Development Index page to admin panel
Diffstat (limited to 'db/fixtures')
-rw-r--r--db/fixtures/development/21_conversational_development_index_metrics.rb40
1 files changed, 40 insertions, 0 deletions
diff --git a/db/fixtures/development/21_conversational_development_index_metrics.rb b/db/fixtures/development/21_conversational_development_index_metrics.rb
new file mode 100644
index 00000000000..4cd0a82ed1a
--- /dev/null
+++ b/db/fixtures/development/21_conversational_development_index_metrics.rb
@@ -0,0 +1,40 @@
+Gitlab::Seeder.quiet do
+ conversational_development_index_metric = ConversationalDevelopmentIndex::Metric.new(
+ leader_issues: 10.2,
+ instance_issues: 3.2,
+
+ leader_notes: 25.3,
+ instance_notes: 23.2,
+
+ leader_milestones: 16.2,
+ instance_milestones: 5.5,
+
+ leader_boards: 5.2,
+ instance_boards: 3.2,
+
+ leader_merge_requests: 5.2,
+ instance_merge_requests: 3.2,
+
+ leader_ci_pipelines: 25.1,
+ instance_ci_pipelines: 21.3,
+
+ leader_environments: 3.3,
+ instance_environments: 2.2,
+
+ leader_deployments: 41.3,
+ instance_deployments: 15.2,
+
+ leader_projects_prometheus_active: 0.31,
+ instance_projects_prometheus_active: 0.30,
+
+ leader_service_desk_issues: 15.8,
+ instance_service_desk_issues: 15.1
+ )
+
+ if conversational_development_index_metric.save
+ print '.'
+ else
+ puts conversational_development_index_metric.errors.full_messages
+ print 'F'
+ end
+end