Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/notes/note_type.rb')
-rw-r--r--app/graphql/types/notes/note_type.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/graphql/types/notes/note_type.rb b/app/graphql/types/notes/note_type.rb
index 5055facb21b..eb1963f976a 100644
--- a/app/graphql/types/notes/note_type.rb
+++ b/app/graphql/types/notes/note_type.rb
@@ -11,6 +11,11 @@ module Types
implements(Types::ResolvableInterface)
+ field :max_access_level_of_author, GraphQL::Types::String,
+ null: true,
+ description: "Max access level of the note author in the project.",
+ method: :human_max_access
+
field :id, ::Types::GlobalIDType[::Note],
null: false,
description: 'ID of the note.'
@@ -36,6 +41,10 @@ module Types
method: :note,
description: 'Content of the note.'
+ field :award_emoji, Types::AwardEmojis::AwardEmojiType.connection_type,
+ null: true,
+ description: 'List of award emojis associated with the note.'
+
field :confidential, GraphQL::Types::Boolean,
null: true,
description: 'Indicates if this note is confidential.',
@@ -74,6 +83,12 @@ module Types
null: true,
description: 'User who last edited the note.'
+ field :author_is_contributor, GraphQL::Types::Boolean,
+ null: true,
+ description: 'Indicates whether the note author is a contributor.',
+ method: :contributor?,
+ calls_gitaly: true
+
field :system_note_metadata, Types::Notes::SystemNoteMetadataType,
null: true,
description: 'Metadata for the given note if it is a system note.'