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, 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!

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Instance Method Details

#resolve(legacy_mode:, **args) ⇒ Object


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

def resolve(legacy_mode:, **args)
  runner.status(legacy_mode)
end