Skip to content

Resolve "resource_group api cannot find resource with dots in it"

What does this MR do and why?

Aligns the resource group API keys to be in line with what is allowed for the resource_group keyword, specifically the customer wants to use '..' in their resource group name

Screenshots or screen recordings

http://gdk.test:3000/api/v4/projects/20/resource_groups/test..tt%2Ftest

{
	"id": 3,
	"key": "test..tt/test",
	"process_mode": "unordered",
	"created_at": "2022-11-04T17:51:13.589Z",
	"updated_at": "2022-11-04T17:51:13.589Z"
}

How to set up and validate locally

  1. Run any build / job with a resource_group that has .. in it's name
  2. Access the projects/PROJECT_ID/resource_groups/RESOURCE_GROUP_KEY endpoint and verify the resource group details are returned instead of 404

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #352570 (closed)

Edited by Allen Cook

Merge request reports

Loading