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
2f81d000
Commit
2f81d000
authored
Apr 12, 2021
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract specialized service execution
parent
7afce3a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
app/services/merge_requests/update_service.rb
app/services/merge_requests/update_service.rb
+7
-5
No files found.
app/services/merge_requests/update_service.rb
View file @
2f81d000
...
@@ -284,14 +284,16 @@ module MergeRequests
...
@@ -284,14 +284,16 @@ module MergeRequests
#
#
return
unless
params
.
keys
.
length
==
1
return
unless
params
.
keys
.
length
==
1
updated_merge_request
=
nil
attempt_specialized_update_services
(
merge_request
,
params
.
each_key
.
first
.
to_sym
)
end
case
params
.
each_key
.
first
.
to_sym
def
attempt_specialized_update_services
(
merge_request
,
attribute
)
case
attribute
when
:assignee_ids
when
:assignee_ids
updated_merge_request
=
assignees_service
.
execute
(
merge_request
)
assignees_service
.
execute
(
merge_request
)
else
nil
end
end
updated_merge_request
end
end
def
assignees_service
def
assignees_service
...
...
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