Skip to content
Snippets Groups Projects
Commit 9521736e authored by James Lopez's avatar James Lopez
Browse files

updated var name based on feedback

parent 42ba19f3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2,7 +2,7 @@ class CycleAnalytics
include Gitlab::Database::Median
include Gitlab::Database::DateTime
 
DEPLOYED_CHECK_METRICS = %i[production staging]
DEPLOYMENT_METRIC_STAGES = %i[production staging]
 
def initialize(project, from:)
@project = project
Loading
Loading
@@ -93,7 +93,7 @@ class CycleAnalytics
join(MergeRequest::Metrics.arel_table).
on(MergeRequest.arel_table[:id].eq(MergeRequest::Metrics.arel_table[:merge_request_id]))
 
if DEPLOYED_CHECK_METRICS.include?(name)
if DEPLOYMENT_METRIC_STAGES.include?(name)
# Limit to merge requests that have been deployed to production after `@from`
query.where(MergeRequest::Metrics.arel_table[:first_deployed_to_production_at].gteq(@from))
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment