Skip to content

Runners cannot be loaded by GraphQL API when they have some null fields

Summary

Some runners cannot be loaded by the GraphQL API when they have null non-nullable fields

Steps to reproduce

Visit: https://staging.gitlab.com/admin/runners?runner_type[]=INSTANCE_TYPE to execute the following query:

image

What is the current bug behavior?

In this specific example, ipAddress and version are null for some runners, so they cannot be loaded.

What is the expected correct behavior?

The runners can be loaded, even if some data is missing.

Relevant logs and/or screenshots

Screen_Shot_2021-07-09_at_4.26.44_PM

Possible fixes

Edited by Pedro Pombeiro