Commit 3892e4e9 authored by charlie ablett's avatar charlie ablett

Merge branch 'bw-graphql-quote-types' into 'master'

Use quotes for circular field definitions

See merge request gitlab-org/gitlab!82651
parents b2939d8a f7e4b2d3
......@@ -108,7 +108,9 @@ module Types
field :suggestion_commit_message, GraphQL::Types::String, null: true,
description: 'Commit message used to apply merge request suggestions.'
field :group, Types::GroupType, null: true,
# No, the quotes are not a typo. Used to get around circular dependencies.
# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27536#note_871009675
field :group, 'Types::GroupType', null: true,
description: 'Group of the project.'
field :namespace, Types::NamespaceType, null: true,
description: 'Namespace of the project.'
......
......@@ -18,7 +18,7 @@ module Types
null: true,
authorize: :read_project
field :group, Types::GroupType,
field :group, 'Types::GroupType',
description: 'Group this to-do item is associated with.',
null: true,
authorize: :read_group
......
......@@ -34,9 +34,9 @@ module Types
field :author, Types::UserType, null: false,
description: 'Author of the epic.'
field :group, GroupType, null: false,
field :group, 'Types::GroupType', null: false,
description: 'Group to which the epic belongs.'
field :parent, EpicType, null: true,
field :parent, Types::EpicType, null: true,
description: 'Parent epic of the epic.'
field :start_date, Types::TimeType, null: true,
......
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