ynput / ayon-kitsu

Official AYON<->Kitsu intetgration (WIP)
Apache License 2.0
8 stars 5 forks source link

Kitsu Listeners #17

Closed scottmcdonnell closed 7 months ago

scottmcdonnell commented 9 months ago

From looking at the code the current addon does a full sync with a kitsu project and is fired by a button press in the Ayon front end. In Openpype there was the syncservice which used Gazu to listen to Kitsu events and sync them with OpenPype database. The Ayon service seems ideal for this. Is the intention for this addon to sync on events in the future?

EmberLightVFX commented 8 months ago

I have started working on this and have gotten the listener into a working Ayon service. Next step is to sync the individual events with Ayon. I'm currently waiting for https://github.com/ynput/ayon-kitsu/pull/18 to be merged as the new service is relying on that merge.

scottmcdonnell commented 8 months ago

If the kitsu listeners such as asset:new episode:new task.new etc and asset:update episode:update task.update etc POST the kitsu entities to the current endpoint /addons/kitsu/{version}/push push.py will handle create and update for kitsu entities. There will need to be a DELETE method added so that entities can be deleted too.

Also project.update will need to update the project anatomy so that will need an endpoint. Does project.delete delete the project in Ayon?

I have made progress with the tests and have mocked much of the Kitsu data for testing the endpoints. I will have a fork up shortly.

scottmcdonnell commented 7 months ago

completed in release 1.0.3