2020-06-23 00:09:42 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Mutations
|
|
|
|
module Metrics
|
|
|
|
module Dashboard
|
|
|
|
module Annotations
|
|
|
|
class Base < BaseMutation
|
|
|
|
private
|
|
|
|
|
|
|
|
# This method is defined here in order to be used by `authorized_find!` in the subclasses.
|
|
|
|
def find_object(id:)
|
2020-10-04 03:57:07 +05:30
|
|
|
GitlabSchema.object_from_id(id, expected_type: ::Metrics::Dashboard::Annotation)
|
2020-06-23 00:09:42 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|