Add runner filter for generic owner field
-
Please check this box if this contribution uses AI-generated content as outlined in the GitLab DCO & CLA
What does this MR do and why?
This MR has back-end changes to add a runners finder with a generic owner
field intended to search for the owning Project/Group, or for Administrator Instance runners.
See the relevant design here: #378558. The screenshots in this design give an idea of how this back-end functionality is intended to be used.
I took this approach so that a filter text passed to the back-end can be added to the existing GraphQL calls on the front-end to filter by these different fields.
How to set up and validate locally
Make sure you have at least one GitLab runner registered and running.
-
Use the following query:
{ runners(owner: "Test") { nodes { id, name } } }
-
The query will return any project runners with project matching the name "Test", as well as group runners with a group matching the name "Test"
-
The input "Administrator" returns all Administrator Instance runners
-
The input "None" should show all non-Admin Instance runners, and orphaned Project/Group runners with no owning Project/Group