summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics/production_stage.rb
blob: 2fb087a8cac60a6faa5a1a66c7b334fdfca77d53 (plain)
1
2
3
4
5
6
7
8
9
10
11
module Gitlab
  module CycleAnalytics
    class ProductionStage < BaseStage
      def median
        @fetcher.calculate_metric(:production,
                                  Issue.arel_table[:created_at],
                                  MergeRequest::Metrics.arel_table[:first_deployed_to_production_at])
      end
    end
  end
end