2020-03-26 12:07:48 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
# rubocop: disable Graphql/AuthorizeTypes
|
2020-12-14 03:10:06 +00:00
|
|
|
# Authorization is at project level for owners or admins
|
2020-03-26 12:07:48 +00:00
|
|
|
class JiraImportType < BaseObject
|
|
|
|
graphql_name 'JiraImport'
|
|
|
|
|
2020-04-27 18:09:41 +00:00
|
|
|
field :created_at, Types::TimeType, null: true,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Timestamp of when the Jira import was created.'
|
2020-04-27 18:09:41 +00:00
|
|
|
field :scheduled_at, Types::TimeType, null: true,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Timestamp of when the Jira import was scheduled.'
|
2020-03-26 12:07:48 +00:00
|
|
|
field :scheduled_by, Types::UserType, null: true,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'User that started the Jira import.'
|
2020-03-26 12:07:48 +00:00
|
|
|
field :jira_project_key, GraphQL::STRING_TYPE, null: false,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Project key for the imported Jira project.'
|
2020-05-21 09:08:04 +00:00
|
|
|
field :imported_issues_count, GraphQL::INT_TYPE, null: false,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Count of issues that were successfully imported.'
|
2020-05-21 09:08:04 +00:00
|
|
|
field :failed_to_import_count, GraphQL::INT_TYPE, null: false,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Count of issues that failed to import.'
|
2020-05-21 09:08:04 +00:00
|
|
|
field :total_issue_count, GraphQL::INT_TYPE, null: false,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Total count of issues that were attempted to import.'
|
2020-03-26 12:07:48 +00:00
|
|
|
end
|
|
|
|
# rubocop: enable Graphql/AuthorizeTypes
|
|
|
|
end
|