Commit 3dde5140 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'enable-query_deploymenys_via_finished_at_in_vsa-ff' into 'master'

Enable VSA deployment query modifications

See merge request gitlab-org/gitlab!53861
parents 9e7622d3 b2ce026d
---
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
milestone: '13.9'
type: development
group: group::optimize
default_enabled: false
default_enabled: true
......@@ -20,7 +20,7 @@ module Gitlab
# rubocop: disable CodeReuse/ActiveRecord
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
.new(group: group, finished_after: options[:from], finished_before: options[:to], status: :success)
.execute
......
......@@ -15,7 +15,7 @@ module Gitlab
private
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
.new(project: @project, finished_after: @from, finished_before: @to, status: :success)
.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