17 lines
482 B
Ruby
17 lines
482 B
Ruby
module Gitlab
|
|
module CycleAnalytics
|
|
class PlanStage < BaseStage
|
|
def description
|
|
"Time before an issue starts implementation"
|
|
end
|
|
|
|
def median
|
|
@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])
|
|
end
|
|
end
|
|
end
|
|
end
|