2020-04-22 19:07:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
# rubocop: disable Graphql/AuthorizeTypes
|
2021-02-22 17:27:13 +05:30
|
|
|
# Authorization is at project level for owners or admins
|
2020-04-22 19:07:51 +05:30
|
|
|
class JiraImportType < BaseObject
|
|
|
|
graphql_name 'JiraImport'
|
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
field :created_at, Types::TimeType, null: true,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Timestamp of when the Jira import was created.'
|
2020-05-24 23:13:21 +05:30
|
|
|
field :scheduled_at, Types::TimeType, null: true,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Timestamp of when the Jira import was scheduled.'
|
2020-04-22 19:07:51 +05:30
|
|
|
field :scheduled_by, Types::UserType, null: true,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'User that started the Jira import.'
|
2021-10-27 15:23:28 +05:30
|
|
|
field :jira_project_key, GraphQL::Types::String, null: false,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Project key for the imported Jira project.'
|
2021-10-27 15:23:28 +05:30
|
|
|
field :imported_issues_count, GraphQL::Types::Int, null: false,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Count of issues that were successfully imported.'
|
2021-10-27 15:23:28 +05:30
|
|
|
field :failed_to_import_count, GraphQL::Types::Int, null: false,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Count of issues that failed to import.'
|
2021-10-27 15:23:28 +05:30
|
|
|
field :total_issue_count, GraphQL::Types::Int, null: false,
|
2021-03-11 19:13:27 +05:30
|
|
|
description: 'Total count of issues that were attempted to import.'
|
2020-04-22 19:07:51 +05:30
|
|
|
end
|
|
|
|
# rubocop: enable Graphql/AuthorizeTypes
|
|
|
|
end
|