Commit 6a80f7e9 authored by Fabio Pitino's avatar Fabio Pitino

Remove FF ci_root_ancestor_for_pipeline_family

parent ccc73d1e
...@@ -851,15 +851,9 @@ module Ci ...@@ -851,15 +851,9 @@ module Ci
end end
def same_family_pipeline_ids def same_family_pipeline_ids
if Feature.enabled?(:ci_root_ancestor_for_pipeline_family, project, default_enabled: false)
::Gitlab::Ci::PipelineObjectHierarchy.new( ::Gitlab::Ci::PipelineObjectHierarchy.new(
self.class.where(id: root_ancestor), options: { same_project: true } self.class.where(id: root_ancestor), options: { same_project: true }
).base_and_descendants.select(:id) ).base_and_descendants.select(:id)
else
::Gitlab::Ci::PipelineObjectHierarchy.new(
base_and_ancestors(same_project: true), options: { same_project: true }
).base_and_descendants.select(:id)
end
end end
def build_with_artifacts_in_self_and_descendants(name) def build_with_artifacts_in_self_and_descendants(name)
......
---
title: Improve query that finds all pipelines in the same family
merge_request: 49240
author:
type: performance
---
name: ci_root_ancestor_for_pipeline_family
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46575
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/287812
milestone: '13.7'
type: development
group: group::continuous integration
default_enabled: false
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