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

jira_import_type.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6fa115933acbe249f6e6c157e507088f4896ebe4 (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
  # rubocop: disable Graphql/AuthorizeTypes
  # Authorization is at project level for owners or admins
  class JiraImportType < BaseObject
    graphql_name 'JiraImport'

    field :created_at, Types::TimeType, null: true,
          description: 'Timestamp of when the Jira import was created.'
    field :scheduled_at, Types::TimeType, null: true,
          description: 'Timestamp of when the Jira import was scheduled.'
    field :scheduled_by, Types::UserType, null: true,
          description: 'User that started the Jira import.'
    field :jira_project_key, GraphQL::STRING_TYPE, null: false,
          description: 'Project key for the imported Jira project.'
    field :imported_issues_count, GraphQL::INT_TYPE, null: false,
          description: 'Count of issues that were successfully imported.'
    field :failed_to_import_count, GraphQL::INT_TYPE, null: false,
          description: 'Count of issues that failed to import.'
    field :total_issue_count, GraphQL::INT_TYPE, null: false,
          description: 'Total count of issues that were attempted to import.'
  end
  # rubocop: enable Graphql/AuthorizeTypes
end