ynput / ayon-backend

Server codebase with API access to AYON
Apache License 2.0
22 stars 17 forks source link

Trigger event when entity parent changes #437

Closed martastain closed 1 week ago

martastain commented 1 week ago

Additional events are triggered when a top-level field of an entity is changed:

{
    "parent_id": "parent_changed",  # for folders
    "folder_id": "folder_changed",  # for tasks and products
    "task_id": "task_changed",  # for workfiles and versions
    "product_id": "product_changed",  # for versions
    "version_id": "version_changed",  # for representations
}

image

Keep in mind that there are constraints in the API, that for example forbids changing hierarchy of folders (e.g. changing parent_id of a folder) when there's a published version in that folder.

iLLiCiTiT commented 1 week ago

Missing task_changed for versions (they are not parents, but versions have task relationship). Nevermind, me being blind.