Updates Ci::Catalog::Resources::CreateService to remove pre-checks for toggle
What does this MR do and why?
Updates Ci::Catalog::Resources::CreateService
- Removes strict validation checks for toggle
- Updates service name
Changelog: changed
How to set up and validate locally
With any blank project, in graphl-explorer
run the mutation:
[2] pry(main)> project.catalog_resource
=> []
mutation {
ciCatalogResourcesCreate(input: {clientMutationId: "gid://gitlab/Project/38", projectPath: "root/blank-project"}) {
errors
}
}
Project is now a catalog resource
[2] pry(main)> project.catalog_resource
Ci::Catalog::Resource Load (0.6ms) SELECT "catalog_resources".* FROM "catalog_resources" WHERE "catalog_resources"."project_id" = 38 LIMIT 1 /*application:console,db_config_name:main,console_hostname:Satans-steel.local,console_username:laura,line:(pry):2:in `__pry__'*/
=> #<Ci::Catalog::Resource:0x0000000131b24828 id: 14, project_id: 38, created_at: Tue, 07 Nov 2023 10:20:27.776939000 UTC +00:00, state: "draft", latest_released_at: nil, name: "blank-project", description: nil>
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 Laura Montemayor