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
54b6d8f3
Commit
54b6d8f3
authored
Oct 06, 2021
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use target_project for the feature flag
parent
d0e2cd52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/finders/ci/pipelines_for_merge_request_finder.rb
app/finders/ci/pipelines_for_merge_request_finder.rb
+1
-1
spec/finders/ci/pipelines_for_merge_request_finder_spec.rb
spec/finders/ci/pipelines_for_merge_request_finder_spec.rb
+1
-1
No files found.
app/finders/ci/pipelines_for_merge_request_finder.rb
View file @
54b6d8f3
...
...
@@ -82,7 +82,7 @@ module Ci
end
def
all_pipelines_for_merge_request
if
Feature
.
enabled?
(
:decomposed_ci_query_in_pipelines_for_merge_request_finder
,
source
_project
,
default_enabled: :yaml
)
if
Feature
.
enabled?
(
:decomposed_ci_query_in_pipelines_for_merge_request_finder
,
target
_project
,
default_enabled: :yaml
)
pipelines_for_merge_request
=
triggered_by_merge_request
pipelines_for_branch
=
triggered_for_branch
.
for_sha
(
recent_diff_head_shas
(
COMMITS_LIMIT
))
...
...
spec/finders/ci/pipelines_for_merge_request_finder_spec.rb
View file @
54b6d8f3
...
...
@@ -242,7 +242,7 @@ RSpec.describe Ci::PipelinesForMergeRequestFinder do
context
'when `decomposed_ci_query_in_pipelines_for_merge_request_finder` feature flag enabled'
do
before
do
stub_feature_flags
(
decomposed_ci_query_in_pipelines_for_merge_request_finder:
merge_request
.
source
_project
)
stub_feature_flags
(
decomposed_ci_query_in_pipelines_for_merge_request_finder:
merge_request
.
target
_project
)
end
it_behaves_like
'returns all pipelines for merge request'
...
...
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