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 ...@@ -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