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
4c696325
Commit
4c696325
authored
Dec 09, 2019
by
Eugenia Grieff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse Issues mutation base
parent
dd5137b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
35 deletions
+1
-35
ee/app/graphql/mutations/issues/base.rb
ee/app/graphql/mutations/issues/base.rb
+0
-34
ee/app/graphql/mutations/issues/set_weight.rb
ee/app/graphql/mutations/issues/set_weight.rb
+1
-1
No files found.
ee/app/graphql/mutations/issues/base.rb
deleted
100644 → 0
View file @
dd5137b3
# frozen_string_literal: true
module
Mutations
module
Issues
class
Base
<
BaseMutation
include
Mutations
::
ResolvesProject
argument
:project_path
,
GraphQL
::
ID_TYPE
,
required:
true
,
description:
"The project the issue to mutate is in"
argument
:iid
,
GraphQL
::
STRING_TYPE
,
required:
true
,
description:
"The iid of the issue to mutate"
field
:issue
,
Types
::
IssueType
,
null:
true
,
description:
"The issue after mutation"
authorize
:update_issue
private
def
find_object
(
project_path
:,
iid
:)
project
=
resolve_project
(
full_path:
project_path
)
resolver
=
Resolvers
::
IssuesResolver
.
single
.
new
(
object:
project
,
context:
context
)
resolver
.
resolve
(
iid:
iid
)
end
end
end
end
ee/app/graphql/mutations/issues/set_weight.rb
View file @
4c696325
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
module
Mutations
module
Mutations
module
Issues
module
Issues
class
SetWeight
<
Base
class
SetWeight
<
::
Mutations
::
Issues
::
Base
graphql_name
'IssueSetWeight'
graphql_name
'IssueSetWeight'
argument
:weight
,
argument
:weight
,
...
...
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