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

work_item_type.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cd784d54959fd0d3701488820351499eef694660 (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
# frozen_string_literal: true

module Types
  class WorkItemType < BaseObject
    graphql_name 'WorkItem'

    authorize :read_work_item

    field :description, GraphQL::Types::String, null: true,
          description: 'Description of the work item.'
    field :id, Types::GlobalIDType[::WorkItem], null: false,
          description: 'Global ID of the work item.'
    field :iid, GraphQL::Types::ID, null: false,
          description: 'Internal ID of the work item.'
    field :lock_version, GraphQL::Types::Int, null: false,
          description: 'Lock version of the work item. Incremented each time the work item is updated.'
    field :state, WorkItemStateEnum, null: false,
          description: 'State of the work item.'
    field :title, GraphQL::Types::String, null: false,
          description: 'Title of the work item.'
    field :work_item_type, Types::WorkItems::TypeType, null: false,
          description: 'Type assigned to the work item.'

    markdown_field :title_html, null: true
    markdown_field :description_html, null: true

    expose_permissions Types::PermissionTypes::WorkItem
  end
end