Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ftrack: Fix occational double parents issue #4153

Merged
merged 1 commit into from Dec 1, 2022

Conversation

iLLiCiTiT
Copy link
Member

Brief description

Fix issue when asset has doubled last parent.

Description

The issue happens when mongo id is not filled in ftrack but entity exists in mongo. Source of issue is because of loggins path of entity which adds parent's name to parens to log it's path but did not create copy of parents list.

Additional information

The issue happened in most of cases during editorial publishing where both ftrack and mongo entities are created and ftrack did not fill mongo id in custom attributes.

Testing notes:

  1. Sync a project from ftrack
  2. Remove Avalon Mongo ID value from entities in ftrack
  3. Remove ftrackId from assets data in mongo
  4. Sync project again
  5. Check mongo values where should be all parents right
    NOTE: Second sync form ftrack would fix the issue so make sure you sync only once after values removement.

@iLLiCiTiT iLLiCiTiT self-assigned this Dec 1, 2022
@iLLiCiTiT iLLiCiTiT added type: bug Something isn't working module: Ftrack labels Dec 1, 2022
@iLLiCiTiT iLLiCiTiT merged commit 4705e6a into develop Dec 1, 2022
@iLLiCiTiT iLLiCiTiT deleted the bugfix/ftrack_sync_parents_issue branch December 1, 2022 15:18
@github-actions github-actions bot added this to the next-patch milestone Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: Ftrack type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants