diff options
Diffstat (limited to 'app/graphql/types/notes/note_type.rb')
-rw-r--r-- | app/graphql/types/notes/note_type.rb | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/app/graphql/types/notes/note_type.rb b/app/graphql/types/notes/note_type.rb index 32f3ff7f556..c254460a51f 100644 --- a/app/graphql/types/notes/note_type.rb +++ b/app/graphql/types/notes/note_type.rb @@ -12,7 +12,7 @@ module Types implements(Types::ResolvableInterface) field :id, ::Types::GlobalIDType[::Note], null: false, - description: 'ID of the note.' + description: 'ID of the note.' field :project, Types::ProjectType, null: true, @@ -25,7 +25,9 @@ module Types field :system, GraphQL::Types::Boolean, null: false, description: 'Indicates whether this note was created by the system or by a user.' - field :system_note_icon_name, GraphQL::Types::String, null: true, + field :system_note_icon_name, + GraphQL::Types::String, + null: true, description: 'Name of the icon corresponding to a system note.' field :body, GraphQL::Types::String, @@ -34,16 +36,26 @@ module Types description: 'Content of the note.' field :confidential, GraphQL::Types::Boolean, null: true, - description: 'Indicates if this note is confidential.', - method: :confidential? + description: 'Indicates if this note is confidential.', + method: :confidential?, + deprecated: { + reason: :renamed, + replacement: 'internal', + milestone: '15.3' + } + + field :internal, GraphQL::Types::Boolean, null: true, + description: 'Indicates if this note is internal.', + method: :confidential? + field :created_at, Types::TimeType, null: false, - description: 'Timestamp of the note creation.' + description: 'Timestamp of the note creation.' field :discussion, Types::Notes::DiscussionType, null: true, - description: 'Discussion this note is a part of.' + description: 'Discussion this note is a part of.' field :position, Types::Notes::DiffPositionType, null: true, - description: 'Position of this note on a diff.' + description: 'Position of this note on a diff.' field :updated_at, Types::TimeType, null: false, - description: "Timestamp of the note's last activity." + description: "Timestamp of the note's last activity." field :url, GraphQL::Types::String, null: true, description: 'URL to view this Note in the Web UI.' |