Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6a80f7e9
Commit
6a80f7e9
authored
Dec 04, 2020
by
Fabio Pitino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove FF ci_root_ancestor_for_pipeline_family
parent
ccc73d1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
17 deletions
+8
-17
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+3
-9
changelogs/unreleased/remove-ff-ci-root-ancestor-for-pipeline-family.yml
...leased/remove-ff-ci-root-ancestor-for-pipeline-family.yml
+5
-0
config/feature_flags/development/ci_root_ancestor_for_pipeline_family.yml
...lags/development/ci_root_ancestor_for_pipeline_family.yml
+0
-8
No files found.
app/models/ci/pipeline.rb
View file @
6a80f7e9
...
...
@@ -851,15 +851,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
)
...
...
changelogs/unreleased/remove-ff-ci-root-ancestor-for-pipeline-family.yml
0 → 100644
View file @
6a80f7e9
---
title
:
Improve query that finds all pipelines in the same family
merge_request
:
49240
author
:
type
:
performance
config/feature_flags/development/ci_root_ancestor_for_pipeline_family.yml
deleted
100644 → 0
View file @
ccc73d1e
---
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment