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

start_and_due_date_type.rb « widgets « work_items « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d4dbc9699376b443424d76df371fbe7b4c4a2b6e (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 Types
  module WorkItems
    module Widgets
      # Disabling widget level authorization as it might be too granular
      # and we already authorize the parent work item
      # rubocop:disable Graphql/AuthorizeTypes
      class StartAndDueDateType < BaseObject
        graphql_name 'WorkItemWidgetStartAndDueDate'
        description 'Represents a start and due date widget'

        implements Types::WorkItems::WidgetInterface

        field :due_date, Types::DateType,
          null: true,
          description: 'Due date of the work item.'
        field :start_date, Types::DateType,
          null: true,
          description: 'Start date of the work item.'
      end
      # rubocop:enable Graphql/AuthorizeTypes
    end
  end
end