Commit 257104c3 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'issue_31920' into 'master'

Expose epic participants on GraphQL

See merge request gitlab-org/gitlab!18691
parents bcb43f77 26011d2f
...@@ -57,6 +57,7 @@ module Types ...@@ -57,6 +57,7 @@ module Types
field :reference, GraphQL::STRING_TYPE, null: false, method: :epic_reference do # rubocop:disable Graphql/Descriptions 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 argument :full, GraphQL::BOOLEAN_TYPE, required: false, default_value: false # rubocop:disable Graphql/Descriptions
end end
field :participants, Types::UserType.connection_type, null: true, complexity: 5, description: 'List of participants for the epic'
field :subscribed, GraphQL::BOOLEAN_TYPE, field :subscribed, GraphQL::BOOLEAN_TYPE,
method: :subscribed?, method: :subscribed?,
......
---
title: Expose epic participants on GraphQL
merge_request: 18691
author:
type: added
...@@ -9,8 +9,8 @@ describe GitlabSchema.types['Epic'] do ...@@ -9,8 +9,8 @@ describe GitlabSchema.types['Epic'] do
start_date start_date_is_fixed start_date_fixed start_date_from_milestones 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 due_date due_date_is_fixed due_date_fixed due_date_from_milestones
closed_at created_at updated_at children has_children has_issues closed_at created_at updated_at children has_children has_issues
web_path web_url relation_path reference issues web_path web_url relation_path reference issues user_permissions
user_permissions notes discussions relative_position subscribed notes discussions relative_position subscribed participants
] ]
end end
...@@ -23,4 +23,6 @@ describe GitlabSchema.types['Epic'] do ...@@ -23,4 +23,6 @@ describe GitlabSchema.types['Epic'] do
it { expect(described_class).to have_graphql_fields(fields) } 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(:subscribed, complexity: 5) }
it { is_expected.to have_graphql_field(:participants, complexity: 5) }
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment