Fix label template on project creation
What does this MR do and why?
Labels were failing to be created silently because
the new label cannot have an organization_id value. organization_id was introduced in Labels sharding_key handles template labels (!198202 - merged) recently, and with it, a new validation that makes sure that no organization_id is present on project labels.
This change also fixes the specs to make sure the project is created successfully when template labels are created.
How to set up and validate locally
- Go to the labels section of the admin section in your GDK
- Create a few labels in there
- Create a new project. The new project should have the labels you created in step 2 after this change. Before this change no error would be raised, but the labels would not be created
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Mario Celi