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/mutations/notes/update/base.rb')
-rw-r--r--app/graphql/mutations/notes/update/base.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/graphql/mutations/notes/update/base.rb b/app/graphql/mutations/notes/update/base.rb
index 4edb7429b97..571001981a4 100644
--- a/app/graphql/mutations/notes/update/base.rb
+++ b/app/graphql/mutations/notes/update/base.rb
@@ -6,12 +6,18 @@ module Mutations
# This is a Base class for the Note update mutations and is not
# mounted as a GraphQL mutation itself.
class Base < Mutations::Notes::Base
+ QUICK_ACTION_ONLY_WARNING = <<~NB
+ If the body of the Note contains only quick actions,
+ the Note will be destroyed during the update, and no Note will be
+ returned.
+ NB
+
authorize :admin_note
argument :id,
- ::Types::GlobalIDType[::Note],
- required: true,
- description: 'The global ID of the note to update.'
+ ::Types::GlobalIDType[::Note],
+ required: true,
+ description: 'The global ID of the note to update.'
def resolve(args)
note = authorized_find!(id: args[:id])