REST: Follow shared runners setting
What does this MR do and why?
Describe in detail what your merge request does and why.
This MR fixes the GET /groups/:id/runners
and GET /projects/:id/runners
endpoints so that they only return shared runners if they are actually available to them. It also fixes the documentation to match the implementation.
See #337690 (comment 825034441)
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
header | header |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Assuming you have a local GDK setup with some instances runners, you should be able to see them from a project, issuing a REST call such as:
$ xh GET "http://gdk.test:3000/api/v4/projects/6/runners?type=instance_type" PRIVATE-TOKEN:${YOUR_PRIVATE_TOKEN}
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Part of #337690 (closed)