diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-11-16 16:11:27 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-11-21 13:57:10 -0500 |
commit | 2748a01a3a0dc6c6e946c41c68ec866bc87e8f8b (patch) | |
tree | 729e62cdc12c21e22d80de937cd4807b93911d24 /app/controllers | |
parent | fe5ae3b0af46cfd5f370fb9d111c8b0f2cd1e0d4 (diff) | |
download | gitlab-ce-2748a01a3a0dc6c6e946c41c68ec866bc87e8f8b.tar.gz |
Use stage description form endpoint response
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/cycle_analytics_controller.rb | 10 |
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 |