summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics/code_stage.rb
blob: d1bc2055ba8cf78b5a81e1792b19d9315f17dcbb (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 CodeStage < BaseStage
      def start_time_attrs
        @start_time_attrs ||= issue_metrics_table[:first_mentioned_in_commit_at]
      end

      def end_time_attrs
        @end_time_attrs ||= mr_table[:created_at]
      end

      def name
        :code
      end

      def description
        "Time until first merge request"
      end
    end
  end
end