Class: Types::Ci::DetailedStatusType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::Ci::DetailedStatusType
show all
- Defined in:
- app/graphql/types/ci/detailed_status_type.rb
Overview
rubocop: disable Graphql/AuthorizeTypes This is presented through PipelineType that has its own authorization
Instance Method Summary
collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user
#present, #unpresented
Instance Method Details
#action ⇒ Object
63
64
65
66
67
68
69
70
71
72
73
74
|
# File 'app/graphql/types/ci/detailed_status_type.rb', line 63
def action
return unless object.has_action?
{
button_title: object.action_button_title,
icon: object.action_icon,
method: object.action_method,
path: object.action_path,
title: object.action_title,
confirmation_message: object.confirmation_message
}
end
|
#favicon ⇒ Object
59
60
61
|
# File 'app/graphql/types/ci/detailed_status_type.rb', line 59
def favicon
Gitlab::Favicon.ci_status_overlay(object.favicon)
end
|
#id(parent:) ⇒ Object
55
56
57
|
# File 'app/graphql/types/ci/detailed_status_type.rb', line 55
def id(parent:)
"#{object.id}-#{parent.id}"
end
|