diff options
author | James Lopez <james@jameslopez.es> | 2016-11-21 17:15:25 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-01-17 11:32:54 +0100 |
commit | a998276223510ceee67f686dfc3ef536c0252c5a (patch) | |
tree | dbc30d5ef3b26fcad6c856c7741d8d32cccf7b23 /lib/gitlab/cycle_analytics/test_stage.rb | |
parent | 3268e3779166c7ddf47ecc0d78397cd75cf2f0e8 (diff) | |
download | gitlab-ce-a998276223510ceee67f686dfc3ef536c0252c5a.tar.gz |
added analytics stage serializer and moved some info to the stage classes from the controller
Diffstat (limited to 'lib/gitlab/cycle_analytics/test_stage.rb')
-rw-r--r-- | lib/gitlab/cycle_analytics/test_stage.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/cycle_analytics/test_stage.rb b/lib/gitlab/cycle_analytics/test_stage.rb index 6bedfdbba61..3ab93bebd87 100644 --- a/lib/gitlab/cycle_analytics/test_stage.rb +++ b/lib/gitlab/cycle_analytics/test_stage.rb @@ -1,6 +1,12 @@ module Gitlab module CycleAnalytics class TestStage < BaseStage + def initialize(*args) + super(*args) + + @description = "Total test time for all commits/merges" + end + def median @fetcher.calculate_metric(:test, MergeRequest::Metrics.arel_table[:latest_build_started_at], |