mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge branch 'develop' into chore/remove_private_method_call
This commit is contained in:
commit
9078902bf0
1 changed files with 15 additions and 2 deletions
|
|
@ -948,10 +948,22 @@ class ProjectPushItemProcess:
|
||||||
self._product_entity = product_entity
|
self._product_entity = product_entity
|
||||||
return product_entity
|
return product_entity
|
||||||
|
|
||||||
|
src_attrib = self._src_product_entity["attrib"]
|
||||||
|
|
||||||
|
dst_attrib = {}
|
||||||
|
for key in {
|
||||||
|
"description",
|
||||||
|
"productGroup",
|
||||||
|
}:
|
||||||
|
value = src_attrib.get(key)
|
||||||
|
if value:
|
||||||
|
dst_attrib[key] = value
|
||||||
|
|
||||||
product_entity = new_product_entity(
|
product_entity = new_product_entity(
|
||||||
product_name,
|
product_name,
|
||||||
product_type,
|
product_type,
|
||||||
folder_id,
|
folder_id,
|
||||||
|
attribs=dst_attrib
|
||||||
)
|
)
|
||||||
self._operations.create_entity(
|
self._operations.create_entity(
|
||||||
project_name, "product", product_entity
|
project_name, "product", product_entity
|
||||||
|
|
@ -990,8 +1002,9 @@ class ProjectPushItemProcess:
|
||||||
"description",
|
"description",
|
||||||
"intent",
|
"intent",
|
||||||
}:
|
}:
|
||||||
if key in src_attrib:
|
value = src_attrib.get(key)
|
||||||
dst_attrib[key] = src_attrib[key]
|
if value:
|
||||||
|
dst_attrib[key] = value
|
||||||
|
|
||||||
if version is None:
|
if version is None:
|
||||||
last_version_entity = ayon_api.get_last_version_by_product_id(
|
last_version_entity = ayon_api.get_last_version_by_product_id(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue