diff options
Diffstat (limited to 'lib/gitlab/analytics/cycle_analytics/stage_events/production_stage_end.rb')
-rw-r--r-- | lib/gitlab/analytics/cycle_analytics/stage_events/production_stage_end.rb | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/gitlab/analytics/cycle_analytics/stage_events/production_stage_end.rb b/lib/gitlab/analytics/cycle_analytics/stage_events/production_stage_end.rb deleted file mode 100644 index b778364a917..00000000000 --- a/lib/gitlab/analytics/cycle_analytics/stage_events/production_stage_end.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -module Gitlab - module Analytics - module CycleAnalytics - module StageEvents - class ProductionStageEnd < StageEvent - def self.name - _("Issue first deployed to production") - end - - def self.identifier - :production_stage_end - end - - def object_type - Issue - end - - def timestamp_projection - mr_metrics_table[:first_deployed_to_production_at] - end - - override :column_list - def column_list - [timestamp_projection] - end - - # rubocop: disable CodeReuse/ActiveRecord - def apply_query_customization(query) - query.joins(merge_requests_closing_issues: { merge_request: [:metrics] }).where(mr_metrics_table[:first_deployed_to_production_at].gteq(mr_table[:created_at])) - end - # rubocop: enable CodeReuse/ActiveRecord - end - end - end - end -end |