Draft: Let cluster agents be found by their name as well as ID
What does this MR do and why?
Let cluster agents be found by their name as well as ID, aims to solve #427522
Numerical agent ID is hard to remember, so allowing retrieval by name would be convenient. If a number is given, it searches by id first then name.
Changelog: changed
How to set up and validate locally
- bundle exec rspec spec/requests/api/clusters/agents_spec.rb
- Ensure all pipelines pass
- Scan cluster_agents.md
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.
Edited by Ted Tran