debian-mirror-gitlab/app/graphql/types/task_completion_status.rb

18 lines
579 B
Ruby
Raw Normal View History

2019-09-04 21:01:54 +05:30
# frozen_string_literal: true
module Types
2019-09-30 21:07:59 +05:30
# rubocop: disable Graphql/AuthorizeTypes
# This is used in `IssueType` and `MergeRequestType` both of which have their
# own authorization
2019-09-04 21:01:54 +05:30
class TaskCompletionStatus < BaseObject
graphql_name 'TaskCompletionStatus'
description 'Completion status of tasks'
2019-12-26 22:10:19 +05:30
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-09-04 21:01:54 +05:30
end
2019-09-30 21:07:59 +05:30
# rubocop: enable Graphql/AuthorizeTypes
2019-09-04 21:01:54 +05:30
end