BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3eeea426
Commit
3eeea426
authored
Mar 08, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move `resolve_discussions_with_issue` to `Issues::CreateService`
parent
843092b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
create_service.rb
app/services/issues/create_service.rb
+9
-0
resolve_discussions.rb
app/services/issues/resolve_discussions.rb
+0
-9
No files found.
app/services/issues/create_service.rb
View file @
3eeea426
...
...
@@ -25,6 +25,15 @@ module Issues
resolve_discussions_with_issue
(
issuable
)
end
def
resolve_discussions_with_issue
(
issue
)
return
if
discussions_to_resolve
.
empty?
Discussions
::
ResolveService
.
new
(
project
,
current_user
,
merge_request:
merge_request_for_resolving_discussions
,
follow_up_issue:
issue
).
execute
(
discussions_to_resolve
)
end
private
def
user_agent_detail_service
...
...
app/services/issues/resolve_discussions.rb
View file @
3eeea426
...
...
@@ -7,15 +7,6 @@ module Issues
@discussion_to_resolve_id
||=
params
.
delete
(
:discussion_to_resolve
)
end
def
resolve_discussions_with_issue
(
issue
)
return
if
discussions_to_resolve
.
empty?
Discussions
::
ResolveService
.
new
(
project
,
current_user
,
merge_request:
merge_request_for_resolving_discussions
,
follow_up_issue:
issue
).
execute
(
discussions_to_resolve
)
end
def
merge_request_for_resolving_discussions
@merge_request_for_resolving_discussions
||=
MergeRequestsFinder
.
new
(
current_user
,
project_id:
project
.
id
).
execute
.
...
...
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