debian-mirror-gitlab/app/graphql/mutations/metrics/dashboard/annotations/base.rb

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

19 lines
443 B
Ruby
Raw Normal View History

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