2016-11-18 15:38:02 +00:00
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
|
|
|
class StagingStage < BaseStage
|
2016-12-09 11:41:15 +00:00
|
|
|
include ProductionHelper
|
2017-01-12 11:48:01 +00:00
|
|
|
def start_time_attrs
|
|
|
|
@start_time_attrs ||= mr_metrics_table[:merged_at]
|
|
|
|
end
|
2016-12-09 11:41:15 +00:00
|
|
|
|
2017-01-12 11:48:01 +00:00
|
|
|
def end_time_attrs
|
|
|
|
@end_time_attrs ||= mr_metrics_table[:first_deployed_to_production_at]
|
2016-11-21 16:15:25 +00:00
|
|
|
end
|
|
|
|
|
2016-12-09 11:41:15 +00:00
|
|
|
def name
|
2016-12-02 16:09:29 +00:00
|
|
|
:staging
|
|
|
|
end
|
|
|
|
|
|
|
|
def description
|
|
|
|
"From merge request merge until deploy to production"
|
2016-11-18 15:38:02 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|