Fix `use_custom_template` bug
What does this MR do and why?
In Create project with "use_custom_template" field... (#297188 - closed) was described error caused by use use_custom_template
param while creating project through API.
When this param was added to a request with value false
it was not deleted - deletion of this param happens only when we have template_name
or template_project_id
params. This is causing Project not being created, as use_custom_template
attribute is not recognized and then we have 500 error.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
how to see the 500 error:
On master, make post
api call to api/:v4/projects
endpoint using use_custom_template
param set to false.
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.