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'
|
|
|
|
|
2021-07-23 12:09:05 +00:00
|
|
|
field :completed_count, GraphQL::Types::Int, null: false,
|
2021-02-05 15:09:28 +00:00
|
|
|
description: 'Number of completed tasks.'
|
2022-02-24 12:12:57 +00:00
|
|
|
field :count, GraphQL::Types::Int, null: false,
|
|
|
|
description: 'Number of total 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
|