cgwire / zou

Zou is the Kitsu API. It allows you to store and manage your production data
https://zou.cg-wire.com
GNU Affero General Public License v3.0
169 stars 103 forks source link

Add entity-name in data payload for all delete events #773

Closed EmberLightVFX closed 8 months ago

EmberLightVFX commented 8 months ago

Problem I'm working on the Kitsu integration for Ayon (old OpenPype). When an entity gets deleted we get the event from Gazu. We get the id of the entity but Ayon's code it built using names by default. This means we have to go through all entities in Ayon to find the one with a matching ID tag. It would be way easier to also get the name of the entity that got deleted.

Solution Pass the name of the entity together with the event.

Info I don't really know how to build and test Zou, I simply install it normally from pip. So if this PR is of interest I would love if someone of you with a Zou test-environment already setup could test the few events I have edited.