Class: Types::Ml::CandidateType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/ml/candidate_type.rb

Overview

rubocop: disable Graphql/AuthorizeTypes – authorization in ModelDetailsResolver

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#ci_jobObject



53
54
55
56
57
# File 'app/graphql/types/ml/candidate_type.rb', line 53

def ci_job
  return unless object.from_ci? && Ability.allowed?(current_user, :read_build, object.ci_build)

  object.ci_build
end