2016-11-18 15:38:02 +00:00
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
|
|
|
class CodeStage < BaseStage
|
2016-12-02 16:09:29 +00:00
|
|
|
def initialize(*args)
|
|
|
|
@start_time_attrs = issue_metrics_table[:first_mentioned_in_commit_at]
|
|
|
|
@end_time_attrs = mr_table[:created_at]
|
|
|
|
|
|
|
|
super(*args)
|
2016-11-21 16:15:25 +00:00
|
|
|
end
|
|
|
|
|
2016-12-02 16:09:29 +00:00
|
|
|
def stage
|
|
|
|
:code
|
|
|
|
end
|
|
|
|
|
|
|
|
def description
|
|
|
|
"Time until first merge request"
|
2016-11-18 15:38:02 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|