summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics/staging_stage.rb
blob: dbc2414ff6698373e29c800bca4469e37633d061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# frozen_string_literal: true

module Gitlab
  module CycleAnalytics
    class StagingStage < BaseStage
      include ProductionHelper
      def start_time_attrs
        @start_time_attrs ||= mr_metrics_table[:merged_at]
      end

      def end_time_attrs
        @end_time_attrs ||= mr_metrics_table[:first_deployed_to_production_at]
      end

      def name
        :staging
      end

      def title
        s_('CycleAnalyticsStage|Staging')
      end

      def legend
        _("Related Deployed Jobs")
      end

      def description
        _("From merge request merge until deploy to production")
      end
    end
  end
end