2016-11-18 15:38:02 +00:00
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
|
|
|
class PlanStage < BaseStage
|
2016-12-02 16:09:29 +00:00
|
|
|
def initialize(*args)
|
|
|
|
@start_time_attrs = [issue_metrics_table[:first_associated_with_milestone_at],
|
|
|
|
issue_metrics_table[:first_added_to_board_at]]
|
|
|
|
@end_time_attrs = issue_metrics_table[:first_mentioned_in_commit_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 before an issue starts implementation"
|
2016-11-18 15:38:02 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|