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

timeline_event_type.rb « incident_management « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 939dd9f09e5abeea33279113246ae45e6729bd75 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# frozen_string_literal: true

module Types
  module IncidentManagement
    class TimelineEventType < BaseObject
      graphql_name 'TimelineEventType'
      description 'Describes an incident management timeline event'

      authorize :read_incident_management_timeline_event

      field :id,
            Types::GlobalIDType[::IncidentManagement::TimelineEvent],
            null: false,
            description: 'ID of the timeline event.'

      field :author,
            Types::UserType,
            null: true,
            description: 'User that created the timeline event.'

      field :updated_by_user,
            Types::UserType,
            null: true,
            description: 'User that updated the timeline event.'

      field :incident,
            Types::IssueType,
            null: false,
            description: 'Incident of the timeline event.'

      field :note,
            GraphQL::Types::String,
            null: true,
            description: 'Text note of the timeline event.'

      field :promoted_from_note,
            Types::Notes::NoteType,
            null: true,
            description: 'Note from which the timeline event was created.'

      field :editable,
            GraphQL::Types::Boolean,
            null: false,
            description: 'Indicates the timeline event is editable.'

      field :action,
            GraphQL::Types::String,
            null: false,
            description: 'Indicates the timeline event icon.'

      field :occurred_at,
            Types::TimeType,
            null: false,
            description: 'Timestamp when the event occurred.'

      field :timeline_event_tags,
            ::Types::IncidentManagement::TimelineEventTagType.connection_type,
            null: true,
            description: 'Tags for the incident timeline event.',
            extras: [:lookahead],
            resolver: Resolvers::IncidentManagement::TimelineEventTagsResolver

      field :created_at,
            Types::TimeType,
            null: false,
            description: 'Timestamp when the event created.'

      field :updated_at,
            Types::TimeType,
            null: false,
            description: 'Timestamp when the event updated.'

      markdown_field :note_html, null: true, description: 'HTML note of the timeline event.'
    end
  end
end