Validate project name and code before running prepare project action and give option to change them. And add validation of unique project code.
Additional information
Before this PR the action just crashes without any detailed information.
There was discovered that we actually do not validate if project code is unique. We probably should add action which would allow to change project name and code, because those changes can be done only via API and cannot be done in ftrack WebUI.
Why is project code important validation? You can have existing AYON project with different name but same code. In that case we cannot sync it.
Testing notes
Run services using service tools
Create ftrack project with invalid name and code e.g. "Můj krásný projekt" and "MůKP".
Run prepare project on the project.
It should tell you that the name and code are invalid, and gives you prompt to change it.
Fill new names (you can try to fill another invalid values).
Description
Validate project name and code before running prepare project action and give option to change them. And add validation of unique project code.
Additional information
Before this PR the action just crashes without any detailed information.
There was discovered that we actually do not validate if project code is unique. We probably should add action which would allow to change project name and code, because those changes can be done only via API and cannot be done in ftrack WebUI. Why is project code important validation? You can have existing AYON project with different name but same code. In that case we cannot sync it.
Testing notes
"Můj krásný projekt"
and"MůKP"
.