debian-mirror-gitlab/app/graphql/types/ci/detailed_status_type.rb

21 lines
1.1 KiB
Ruby
Raw Normal View History

2019-07-07 11:18:12 +05:30
# frozen_string_literal: true
module Types
module Ci
2019-09-30 21:07:59 +05:30
# rubocop: disable Graphql/AuthorizeTypes
# This is presented through `PipelineType` that has its own authorization
2019-07-07 11:18:12 +05:30
class DetailedStatusType < BaseObject
graphql_name 'DetailedStatus'
2019-12-04 20:38:33 +05:30
field :group, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
field :icon, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
field :favicon, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
field :details_path, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
field :has_details, GraphQL::BOOLEAN_TYPE, null: false, method: :has_details? # rubocop:disable Graphql/Descriptions
field :label, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
field :text, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
field :tooltip, GraphQL::STRING_TYPE, null: false, method: :status_tooltip # rubocop:disable Graphql/Descriptions
2019-07-07 11:18:12 +05:30
end
2019-09-30 21:07:59 +05:30
# rubocop: enable Graphql/AuthorizeTypes
2019-07-07 11:18:12 +05:30
end
end