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
26011d2f
Commit
26011d2f
authored
Oct 16, 2019
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose epic participants on GraphQL
Expose field participants for epics on GraphQL
parent
6e3a2208
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
ee/app/graphql/types/epic_type.rb
ee/app/graphql/types/epic_type.rb
+1
-0
ee/changelogs/unreleased/issue_31920.yml
ee/changelogs/unreleased/issue_31920.yml
+5
-0
ee/spec/graphql/types/epic_type_spec.rb
ee/spec/graphql/types/epic_type_spec.rb
+4
-2
No files found.
ee/app/graphql/types/epic_type.rb
View file @
26011d2f
...
...
@@ -57,6 +57,7 @@ module Types
field
:reference
,
GraphQL
::
STRING_TYPE
,
null:
false
,
method: :epic_reference
do
# rubocop:disable Graphql/Descriptions
argument
:full
,
GraphQL
::
BOOLEAN_TYPE
,
required:
false
,
default_value:
false
# rubocop:disable Graphql/Descriptions
end
field
:participants
,
Types
::
UserType
.
connection_type
,
null:
true
,
complexity:
5
,
description:
'List of participants for the epic'
field
:subscribed
,
GraphQL
::
BOOLEAN_TYPE
,
method: :subscribed?
,
...
...
ee/changelogs/unreleased/issue_31920.yml
0 → 100644
View file @
26011d2f
---
title
:
Expose epic participants on GraphQL
merge_request
:
18691
author
:
type
:
added
ee/spec/graphql/types/epic_type_spec.rb
View file @
26011d2f
...
...
@@ -9,8 +9,8 @@ describe GitlabSchema.types['Epic'] do
start_date start_date_is_fixed start_date_fixed start_date_from_milestones
due_date due_date_is_fixed due_date_fixed due_date_from_milestones
closed_at created_at updated_at children has_children has_issues
web_path web_url relation_path reference issues
user_permissions notes discussions relative_position subscribed
web_path web_url relation_path reference issues
user_permissions
notes discussions relative_position subscribed participants
]
end
...
...
@@ -23,4 +23,6 @@ describe GitlabSchema.types['Epic'] do
it
{
expect
(
described_class
).
to
have_graphql_fields
(
fields
)
}
it
{
is_expected
.
to
have_graphql_field
(
:subscribed
,
complexity:
5
)
}
it
{
is_expected
.
to
have_graphql_field
(
:participants
,
complexity:
5
)
}
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