Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Ftrack: Editorial asset sync issue #4126

Merged

Conversation

iLLiCiTiT
Copy link
Member

Brief description

Probably fixing most of current issue with editorial publishing. Auto sync is not turned off (and back to on) during ftrack hierarchy integration which caused that assets without unavailable entities were marked as archived and at the same time were created new assets which lead to double asset documents and subsets created during editorial publishing lead to the archived one.

Description

Auto sync is not turned on/off. Entities for filling ftrack entities are prequeried for whole project instead of querying all entities separatelly. Custom attributes are "created" or "updated" to table "CustomAttributeValue" instead of "ContextCustomAttributeValue" (which could cause that entity did not have filled the value as expected. Recursive functions were modified to queu based. Avoid requery of data from ftrack.

Additional info

There is still room for improvement in the hierarchy plugin and some change on ftrack event sync but for now this should fix most of current issues.

Testing notes:

Editorial publishing should work the same or better way.

  1. Publish editorial which would create at least 15 shots (assets)
  2. None of that should cause issues and none of that should at the end be marked as archived in openpype mongo
  3. Custom attributes should be propagated to new created entities on ftrack

@ynbot
Copy link
Contributor

ynbot commented Nov 23, 2022

@iLLiCiTiT iLLiCiTiT self-assigned this Nov 23, 2022
def import_to_ftrack(self, project_name, input_data, parent=None):
return output

def import_to_ftrack(self, project_name, hierarchy_context):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'IntegrateHierarchyToFtrack.import_to_ftrack' is too complex (36)

@iLLiCiTiT iLLiCiTiT added type: enhancement Enhancements to existing functionality module: Ftrack labels Nov 23, 2022
Copy link
Member

@jakubjezek001 jakubjezek001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it worked

@iLLiCiTiT iLLiCiTiT merged commit 9fb726d into develop Nov 23, 2022
@iLLiCiTiT iLLiCiTiT deleted the feature/OP-4499_Backend---editorial-asset-sync-issue branch November 23, 2022 16:56
@github-actions github-actions bot added this to the next-patch milestone Nov 23, 2022
@jakubjezek001 jakubjezek001 modified the milestones: 3.14.7, next-patch Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
module: Ftrack type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants