Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-23 09:11:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-23 09:11:16 +0300
commitd5f3372f10b9fefc8cf831515152eee7ae908f69 (patch)
treea9d231fa5618b907f38565f72d8c41d112c601c5 /lib/gitlab/cycle_analytics
parentbf562015bb1bfd526c6367fed394a74ab0eeabf0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/cycle_analytics')
-rw-r--r--lib/gitlab/cycle_analytics/summary/deploy.rb14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/gitlab/cycle_analytics/summary/deploy.rb b/lib/gitlab/cycle_analytics/summary/deploy.rb
index aaa2554dbfa..c247ef0d2a7 100644
--- a/lib/gitlab/cycle_analytics/summary/deploy.rb
+++ b/lib/gitlab/cycle_analytics/summary/deploy.rb
@@ -15,16 +15,10 @@ module Gitlab
private
def deployments_count
- if Feature.enabled?(:query_deploymenys_via_finished_at_in_vsa, default_enabled: :yaml)
- DeploymentsFinder
- .new(project: @project, finished_after: @from, finished_before: @to, status: :success)
- .execute
- .count
- else
- query = @project.deployments.success.where("created_at >= ?", @from)
- query = query.where("created_at <= ?", @to) if @to
- query.count
- end
+ DeploymentsFinder
+ .new(project: @project, finished_after: @from, finished_before: @to, status: :success)
+ .execute
+ .count
end
end
end