diff options
author | James Lopez <james@jameslopez.es> | 2016-10-13 09:19:30 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-10-13 09:19:30 +0200 |
commit | 9521736ebc062ba6f693da389f895061ac7a8b3a (patch) | |
tree | dcb33ed233a1c807d265c12454d6baa5eb922a3b /app | |
parent | 42ba19f339a63a1e49a40fd4df9c75470ec71f25 (diff) | |
download | gitlab-ce-9521736ebc062ba6f693da389f895061ac7a8b3a.tar.gz |
updated var name based on feedbackfeature/cycle-analytics-2-backend
Diffstat (limited to 'app')
-rw-r--r-- | app/models/cycle_analytics.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/cycle_analytics.rb b/app/models/cycle_analytics.rb index 0f3fd995681..8ed4a56b19b 100644 --- a/app/models/cycle_analytics.rb +++ b/app/models/cycle_analytics.rb @@ -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 @@ -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 |