Skip to content
Snippets Groups Projects
Commit 257104c3 authored by Jan Provaznik's avatar Jan Provaznik
Browse files

Merge branch 'issue_31920' into 'master'

Expose epic participants on GraphQL

See merge request !18691
parents bcb43f77 26011d2f
No related branches found
No related tags found
2 merge requests!18942WIP: Resolve "Create API endpoint to generate and return personal access token",!18691Expose epic participants on GraphQL
Pipeline #89742458 passed with warnings
......@@ -57,6 +57,7 @@ class EpicType < BaseObject
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?,
......
---
title: Expose epic participants on GraphQL
merge_request: 18691
author:
type: added
......@@ -9,8 +9,8 @@
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 @@
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment