2016-11-18 15:38:02 +00:00
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
|
|
|
class PlanStage < BaseStage
|
2016-12-01 10:21:24 +00:00
|
|
|
def description
|
|
|
|
"Time before an issue starts implementation"
|
2016-11-21 16:15:25 +00:00
|
|
|
end
|
|
|
|
|
2016-11-18 15:38:02 +00:00
|
|
|
def median
|
2016-12-01 10:21:24 +00:00
|
|
|
@fetcher.median(:plan,
|
|
|
|
[Issue::Metrics.arel_table[:first_associated_with_milestone_at],
|
|
|
|
Issue::Metrics.arel_table[:first_added_to_board_at]],
|
|
|
|
Issue::Metrics.arel_table[:first_mentioned_in_commit_at])
|
2016-11-18 15:38:02 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|