Commit cd5de010 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'remove-ff-ci-root-ancestor-for-pipeline-family' into 'master'

Remove FF ci_root_ancestor_for_pipeline_family

See merge request gitlab-org/gitlab!49240
parents a8de6a62 6a80f7e9
......@@ -853,15 +853,9 @@ module Ci
end
def same_family_pipeline_ids
if Feature.enabled?(:ci_root_ancestor_for_pipeline_family, project, default_enabled: false)
::Gitlab::Ci::PipelineObjectHierarchy.new(
self.class.where(id: root_ancestor), options: { same_project: true }
).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
::Gitlab::Ci::PipelineObjectHierarchy.new(
self.class.where(id: root_ancestor), options: { same_project: true }
).base_and_descendants.select(:id)
end
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