gitlab-org--gitlab-foss/lib/gitlab/cycle_analytics/plan_stage.rb

17 lines
482 B
Ruby
Raw Normal View History

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