ynput / ayon-ftrack

Apache License 2.0
3 stars 9 forks source link

Enhancement: Prepare action gives option to change ftrack name and code #60

Closed iLLiCiTiT closed 9 months ago

iLLiCiTiT commented 10 months ago

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

  1. Run services using service tools
  2. Create ftrack project with invalid name and code e.g. "Můj krásný projekt" and "MůKP".
  3. Run prepare project on the project.
  4. It should tell you that the name and code are invalid, and gives you prompt to change it.
  5. Fill new names (you can try to fill another invalid values).
  6. Rest of prepare project should work.