Commit b2ce026d authored by Adam Hegyi's avatar Adam Hegyi

Enable VSA deployment query modifications

This change enables the query_deploymenys_via_finished_at_in_vsa FF.
parent 01031763
---
title: Filter deployments by finished_at in Value Stream Analytics
merge_request: 53861
author:
type: changed
...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/300649 ...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/300649
milestone: '13.9' milestone: '13.9'
type: development type: development
group: group::optimize group: group::optimize
default_enabled: false default_enabled: true
...@@ -20,7 +20,7 @@ module Gitlab ...@@ -20,7 +20,7 @@ module Gitlab
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def deployments_count def deployments_count
@deployments_count ||= if Feature.enabled?(:query_deploymenys_via_finished_at_in_vsa) @deployments_count ||= if Feature.enabled?(:query_deploymenys_via_finished_at_in_vsa, default_enabled: :yaml)
deployments = DeploymentsFinder deployments = DeploymentsFinder
.new(group: group, finished_after: options[:from], finished_before: options[:to], status: :success) .new(group: group, finished_after: options[:from], finished_before: options[:to], status: :success)
.execute .execute
......
...@@ -15,7 +15,7 @@ module Gitlab ...@@ -15,7 +15,7 @@ module Gitlab
private private
def deployments_count def deployments_count
if Feature.enabled?(:query_deploymenys_via_finished_at_in_vsa) if Feature.enabled?(:query_deploymenys_via_finished_at_in_vsa, default_enabled: :yaml)
DeploymentsFinder DeploymentsFinder
.new(project: @project, finished_after: @from, finished_before: @to, status: :success) .new(project: @project, finished_after: @from, finished_before: @to, status: :success)
.execute .execute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment