mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge branch 'master' into release/2.6.0
This commit is contained in:
commit
3b65b01d5e
5 changed files with 78 additions and 36 deletions
|
|
@ -26,11 +26,7 @@ class SyncToAvalonEvent(BaseEvent):
|
|||
|
||||
dbcon = DbConnector()
|
||||
|
||||
ignore_entTypes = [
|
||||
"socialfeed", "socialnotification", "note",
|
||||
"assetversion", "job", "user", "reviewsessionobject", "timer",
|
||||
"timelog", "auth_userrole", "appointment", "notelabellink"
|
||||
]
|
||||
interest_entTypes = ["show", "task"]
|
||||
ignore_ent_types = ["Milestone"]
|
||||
ignore_keys = ["statusid", "thumbid"]
|
||||
|
||||
|
|
@ -137,9 +133,10 @@ class SyncToAvalonEvent(BaseEvent):
|
|||
if self._avalon_ents_by_id is None:
|
||||
self._avalon_ents_by_id = {}
|
||||
proj, ents = self.avalon_entities
|
||||
self._avalon_ents_by_id[proj["_id"]] = proj
|
||||
for ent in ents:
|
||||
self._avalon_ents_by_id[ent["_id"]] = ent
|
||||
if proj:
|
||||
self._avalon_ents_by_id[proj["_id"]] = proj
|
||||
for ent in ents:
|
||||
self._avalon_ents_by_id[ent["_id"]] = ent
|
||||
return self._avalon_ents_by_id
|
||||
|
||||
@property
|
||||
|
|
@ -159,13 +156,14 @@ class SyncToAvalonEvent(BaseEvent):
|
|||
if self._avalon_ents_by_ftrack_id is None:
|
||||
self._avalon_ents_by_ftrack_id = {}
|
||||
proj, ents = self.avalon_entities
|
||||
ftrack_id = proj["data"]["ftrackId"]
|
||||
self._avalon_ents_by_ftrack_id[ftrack_id] = proj
|
||||
for ent in ents:
|
||||
ftrack_id = ent["data"].get("ftrackId")
|
||||
if ftrack_id is None:
|
||||
continue
|
||||
self._avalon_ents_by_ftrack_id[ftrack_id] = ent
|
||||
if proj:
|
||||
ftrack_id = proj["data"]["ftrackId"]
|
||||
self._avalon_ents_by_ftrack_id[ftrack_id] = proj
|
||||
for ent in ents:
|
||||
ftrack_id = ent["data"].get("ftrackId")
|
||||
if ftrack_id is None:
|
||||
continue
|
||||
self._avalon_ents_by_ftrack_id[ftrack_id] = ent
|
||||
return self._avalon_ents_by_ftrack_id
|
||||
|
||||
@property
|
||||
|
|
@ -508,7 +506,7 @@ class SyncToAvalonEvent(BaseEvent):
|
|||
found_actions = set()
|
||||
for ent_info in entities_info:
|
||||
entityType = ent_info["entityType"]
|
||||
if entityType in self.ignore_entTypes:
|
||||
if entityType not in self.interest_entTypes:
|
||||
continue
|
||||
|
||||
entity_type = ent_info.get("entity_type")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue