Class: Types::Ci::DetailedStatusType

Inherits:
BaseObject
  • Object
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

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#actionObject



55
56
57
58
59
60
61
62
63
64
65
66
# File 'app/graphql/types/ci/detailed_status_type.rb', line 55

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

#id(parent:) ⇒ Object



51
52
53
# File 'app/graphql/types/ci/detailed_status_type.rb', line 51

def id(parent:)
  "#{object.id}-#{parent.id}"
end