debian-mirror-gitlab/app/graphql/mutations/notes/update/note.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
846 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module Mutations
module Notes
module Update
class Note < Mutations::Notes::Update::Base
graphql_name 'UpdateNote'
2021-04-17 20:07:23 +05:30
description "Updates a Note.\n#{QUICK_ACTION_ONLY_WARNING}"
2020-03-13 15:44:24 +05:30
argument :body,
2021-10-27 15:23:28 +05:30
GraphQL::Types::String,
2021-04-17 20:07:23 +05:30
required: false,
description: copy_field_description(Types::Notes::NoteType, :body)
2020-03-13 15:44:24 +05:30
2020-10-24 23:57:45 +05:30
argument :confidential,
2021-10-27 15:23:28 +05:30
GraphQL::Types::Boolean,
2021-04-17 20:07:23 +05:30
required: false,
2022-06-21 17:19:12 +05:30
description: 'Confidentiality flag of a note. Default is false.',
deprecated: { reason: 'No longer allowed to update confidentiality of notes', milestone: '14.10' }
2020-10-24 23:57:45 +05:30
2020-03-13 15:44:24 +05:30
private
2021-01-03 14:25:43 +05:30
def pre_update_checks!(_note, _args)
# no-op
2020-03-13 15:44:24 +05:30
end
end
end
end
end