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

delete.rb « annotations « dashboard « metrics « mutations « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 61fcf8e0b13ca75cc2f42583ebb8faec0c20eb4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Mutations
  module Metrics
    module Dashboard
      module Annotations
        class Delete < Base
          graphql_name 'DeleteAnnotation'

          authorize :admin_metrics_dashboard_annotation

          argument :id, ::Types::GlobalIDType[::Metrics::Dashboard::Annotation],
                  required: true,
                  description: 'Global ID of the annotation to delete.'

          # rubocop:disable Lint/UnusedMethodArgument
          def resolve(id:)
            raise_resource_not_available_error!
          end
          # rubocop:enable Lint/UnusedMethodArgument
        end
      end
    end
  end
end