2016-11-18 15:38:02 +00:00
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
|
|
|
class ReviewStage < BaseStage
|
2017-01-12 11:48:01 +00:00
|
|
|
def start_time_attrs
|
|
|
|
@start_time_attrs ||= mr_table[:created_at]
|
|
|
|
end
|
2016-12-02 16:09:29 +00:00
|
|
|
|
2017-01-12 11:48:01 +00:00
|
|
|
def end_time_attrs
|
|
|
|
@end_time_attrs ||= mr_metrics_table[:merged_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
|
|
|
:review
|
|
|
|
end
|
|
|
|
|
|
|
|
def description
|
|
|
|
"Time between merge request creation and merge/close"
|
2016-11-18 15:38:02 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|