Backend: When no runners are available, notify users in the pipeline editor
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem
When creating a CI/CD config using the pipeline editor as a self-managed instance user, you don't learn about missing runners until you commit the config file. The frontend will add a notification, but first the backend needs to tell the runner if there are no runners
Proposed solution
Add a membership argument to the runners field so we can specifically query for the count of runners available to the project without worrying about the current user's permission level. Ensure the count field has a limit to reduce the impact on the database
{
project(fullPath: "the-group/the-project") {
id
runners(membership: OWNED_OR_INSTANCE_WIDE) {
count(limit: 1)
}
}
}
Edited by 🤖 GitLab Bot 🤖