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
af6b0f5c
Commit
af6b0f5c
authored
Aug 07, 2020
by
Igor Drozdov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove refresh_only_existing_merge_requests_on_push FF
parent
bdc9ae90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
app/services/git/process_ref_changes_service.rb
app/services/git/process_ref_changes_service.rb
+0
-2
spec/services/git/process_ref_changes_service_spec.rb
spec/services/git/process_ref_changes_service_spec.rb
+0
-12
No files found.
app/services/git/process_ref_changes_service.rb
View file @
af6b0f5c
...
@@ -75,8 +75,6 @@ module Git
...
@@ -75,8 +75,6 @@ module Git
end
end
def
merge_request_branches_for
(
changes
)
def
merge_request_branches_for
(
changes
)
return
if
Feature
.
disabled?
(
:refresh_only_existing_merge_requests_on_push
,
default_enabled:
true
)
@merge_requests_branches
||=
MergeRequests
::
PushedBranchesService
.
new
(
project
,
current_user
,
changes:
changes
).
execute
@merge_requests_branches
||=
MergeRequests
::
PushedBranchesService
.
new
(
project
,
current_user
,
changes:
changes
).
execute
end
end
end
end
...
...
spec/services/git/process_ref_changes_service_spec.rb
View file @
af6b0f5c
...
@@ -190,18 +190,6 @@ RSpec.describe Git::ProcessRefChangesService do
...
@@ -190,18 +190,6 @@ RSpec.describe Git::ProcessRefChangesService do
subject
.
execute
subject
.
execute
end
end
context
'refresh_only_existing_merge_requests_on_push disabled'
do
before
do
stub_feature_flags
(
refresh_only_existing_merge_requests_on_push:
false
)
end
it
'refreshes all merge requests'
do
expect
(
UpdateMergeRequestsWorker
).
to
receive
(
:perform_async
).
exactly
(
3
).
times
subject
.
execute
end
end
end
end
end
end
...
...
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