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
7b1c31d1
Commit
7b1c31d1
authored
Oct 02, 2019
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move epic field in GraphQL IssueType
Fixes broken master in gitlab-foss
parent
601e7e78
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
2 deletions
+5
-2
app/graphql/types/issue_type.rb
app/graphql/types/issue_type.rb
+0
-1
ee/app/graphql/ee/types/issue_type.rb
ee/app/graphql/ee/types/issue_type.rb
+2
-0
ee/spec/graphql/types/issue_type_spec.rb
ee/spec/graphql/types/issue_type_spec.rb
+2
-0
spec/graphql/types/issue_type_spec.rb
spec/graphql/types/issue_type_spec.rb
+1
-1
No files found.
app/graphql/types/issue_type.rb
View file @
7b1c31d1
...
...
@@ -49,7 +49,6 @@ module Types
field
:web_url
,
GraphQL
::
STRING_TYPE
,
null:
false
# rubocop:disable Graphql/Descriptions
field
:relative_position
,
GraphQL
::
INT_TYPE
,
null:
true
# rubocop:disable Graphql/Descriptions
field
:epic
,
::
Types
::
EpicType
,
null:
true
,
description:
'The epic to which issue belongs'
field
:participants
,
Types
::
UserType
.
connection_type
,
null:
true
,
complexity:
5
,
description:
'List of participants for the issue'
field
:time_estimate
,
GraphQL
::
INT_TYPE
,
null:
false
,
description:
'The time estimate on the issue'
field
:total_time_spent
,
GraphQL
::
INT_TYPE
,
null:
false
,
description:
'Total time reported as spent on the issue'
...
...
ee/app/graphql/ee/types/issue_type.rb
View file @
7b1c31d1
...
...
@@ -6,6 +6,8 @@ module EE
extend
ActiveSupport
::
Concern
prepended
do
field
:epic
,
::
Types
::
EpicType
,
null:
true
,
description:
'The epic to which issue belongs'
field
:weight
,
GraphQL
::
INT_TYPE
,
# rubocop:disable Graphql/Descriptions
null:
true
,
resolve:
->
(
obj
,
_args
,
_ctx
)
{
obj
.
supports_weight?
?
obj
.
weight
:
nil
}
...
...
ee/spec/graphql/types/issue_type_spec.rb
View file @
7b1c31d1
...
...
@@ -3,6 +3,8 @@
require
'spec_helper'
describe
GitlabSchema
.
types
[
'Issue'
]
do
it
{
expect
(
described_class
).
to
have_graphql_field
(
:epic
)
}
it
{
expect
(
described_class
).
to
have_graphql_field
(
:weight
)
}
it
{
expect
(
described_class
).
to
have_graphql_field
(
:designs
)
}
...
...
spec/graphql/types/issue_type_spec.rb
View file @
7b1c31d1
...
...
@@ -10,7 +10,7 @@ describe GitlabSchema.types['Issue'] do
it
{
expect
(
described_class
.
interfaces
).
to
include
(
Types
::
Notes
::
NoteableType
.
to_graphql
)
}
it
'has specific fields'
do
fields
=
%i[iid title description state reference author assignees participants labels
epic
milestone due_date
fields
=
%i[iid title description state reference author assignees participants labels milestone due_date
confidential discussion_locked upvotes downvotes user_notes_count web_path web_url relative_position
time_estimate total_time_spent closed_at created_at updated_at task_completion_status]
...
...
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