summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics/plan_stage.rb
blob: f8c9b9c4495359cbca12c3b2369d1743c5e66b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module Gitlab
  module CycleAnalytics
    class PlanStage < BaseStage
      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)
      end

      def stage
        :plan
      end

      def description
        "Time before an issue starts implementation"
      end
    end
  end
end