Skip to content

Draft: Let cluster agents be found by their name as well as ID

Ted Tran requested to merge gitlab-community/gitlab:agent-name into master

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

  1. bundle exec rspec spec/requests/api/clusters/agents_spec.rb
  2. Ensure all pipelines pass
  3. 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.

Edited by Ted Tran

Merge request reports

Loading