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

base.rb « timeline_event_tag « incident_management « mutations « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b1d07203ca1e8b606c82601e001f7e6e41d52c40 (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 IncidentManagement
    module TimelineEventTag
      class Base < BaseMutation
        field :timeline_event_tag,
              ::Types::IncidentManagement::TimelineEventTagType,
              null: true,
              description: 'Timeline event tag.'

        authorize :admin_incident_management_timeline_event_tag

        private

        def response(result)
          {
            timeline_event_tag: result.payload[:timeline_event_tag],
            errors: result.errors
          }
        end
      end
    end
  end
end