Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-11-17 00:11:27 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-11-21 21:57:10 +0300
commit2748a01a3a0dc6c6e946c41c68ec866bc87e8f8b (patch)
tree729e62cdc12c21e22d80de937cd4807b93911d24 /app/controllers/projects/cycle_analytics_controller.rb
parentfe5ae3b0af46cfd5f370fb9d111c8b0f2cd1e0d4 (diff)
Use stage description form endpoint response
Diffstat (limited to 'app/controllers/projects/cycle_analytics_controller.rb')
-rw-r--r--app/controllers/projects/cycle_analytics_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/projects/cycle_analytics_controller.rb b/app/controllers/projects/cycle_analytics_controller.rb
index 2fb496053a5..fd263960b93 100644
--- a/app/controllers/projects/cycle_analytics_controller.rb
+++ b/app/controllers/projects/cycle_analytics_controller.rb
@@ -31,11 +31,11 @@ class Projects::CycleAnalyticsController < Projects::ApplicationController
cycle_analytics_view_data = [[:issue, "Issue", "Related Issues", "Time before an issue gets scheduled"],
[:plan, "Plan", "Related Commits", "Time before an issue starts implementation"],
- [:code, "Code", "Related Merge Requests", "Time until first merge request"],
- [:test, "Test", "Relative Builds Trigger by Commits", "Total test time for all commits/merges"],
- [:review, "Review", "Relative Merged Requests", "Time between merge request creation and merge/close"],
- [:staging, "Staging", "Relative Deployed Builds", "From merge request merge until deploy to production"],
- [:production, "Production", "Related Issues", "From issue creation until deploy to production"]]
+ [:code, "Code", "Related Merge Requests", "Time spent coding"],
+ [:test, "Test", "Relative Builds Trigger by Commits", "The time taken to build and test the application"],
+ [:review, "Review", "Relative Merged Requests", "The time taken to review the code"],
+ [:staging, "Staging", "Relative Deployed Builds", "The time taken in staging"],
+ [:production, "Production", "Related Issues", "The total time taken from idea to production"]]
stats = cycle_analytics_view_data.reduce([]) do |stats, (stage_method, stage_text, stage_legend, stage_description)|
value = @cycle_analytics.send(stage_method).presence