Class: Resolvers::Ci::RunnerStatusResolver

Inherits:
BaseResolver
  • Object
show all
Defined in:
app/graphql/resolvers/ci/runner_status_resolver.rb

Overview

NOTE: This class was introduced to allow modifying the meaning of certain values in RunnerStatusEnum while preserving backward compatibility. It can be removed in 17.0 after being deprecated and made a no-op in %16.0 (legacy_mode will be hard-coded to nil).

Instance Method Summary collapse

Methods inherited from BaseResolver

as_single, authorization, authorized?, before_connection_authorization, before_connection_authorization_block, calculate_ext_conn_complexity, calls_gitaly!, complexity, complexity_multiplier, #current_user, field_options, last, #object, #offset_pagination, requires_argument!, resolver_complexity, #select_result, single, #single?, single_definition_blocks, singular_type, when_single

Methods included from Gitlab::Utils::Override

#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!

Instance Method Details

#resolve(**args) ⇒ Object



23
24
25
# File 'app/graphql/resolvers/ci/runner_status_resolver.rb', line 23

def resolve(**args)
  runner.status
end