Skip to content

Add missing not_connected scope to Ci::Runner

What does this MR do?

The new /runners GraphQL query will expose a status field for each runner. However, there is no representation for the not_connected status, which causes the error shown in the screenshot below. If Types::Ci::RunnerStatusEnum is going to be based on ::Ci::Runner::AVAILABLE_STATUSES to build out the possible enum values, then we need to add the not_connected value as well.

The /runners GraphQL query will also allow to filter by Types::Ci::RunnerStatusEnum, so we need to add the respective :not_connected scope.

Screenshots (strongly suggested)

image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Part of #328518 (closed)

Edited by Pedro Pombeiro

Merge request reports

Loading