2019-06-15 04:56:28 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
2019-06-18 16:31:06 +00:00
|
|
|
# rubocop: disable Graphql/AuthorizeTypes
|
|
|
|
# This is used in `IssueType` and `MergeRequestType` both of which have their
|
|
|
|
# own authorization
|
2019-06-15 04:56:28 +00:00
|
|
|
class TaskCompletionStatus < BaseObject
|
|
|
|
graphql_name 'TaskCompletionStatus'
|
|
|
|
description 'Completion status of tasks'
|
|
|
|
|
2019-10-31 12:06:26 +00:00
|
|
|
field :count, GraphQL::INT_TYPE, null: false,
|
|
|
|
description: 'Number of total tasks'
|
|
|
|
field :completed_count, GraphQL::INT_TYPE, null: false,
|
|
|
|
description: 'Number of completed tasks'
|
2019-06-15 04:56:28 +00:00
|
|
|
end
|
2019-06-18 16:31:06 +00:00
|
|
|
# rubocop: enable Graphql/AuthorizeTypes
|
2019-06-15 04:56:28 +00:00
|
|
|
end
|