ynput / ayon-backend

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

Activities: Endpoint/s to get activities #429

Closed iLLiCiTiT closed 1 week ago

iLLiCiTiT commented 2 weeks ago

Story

We might need to sync activies (especially comments) to other production trackers. To make it possible we need to be able to get them easily.

Problems

We can easily and effectively get activities for the sync. Meaning to get changed or created activities from a point in time (timestamp). Maybe filter them by activity types, for example status change activity is not important for sync, status change is captured by entity change topics. We might need to limit amount of activities that are important so we don't timeout. (We might need second endpoint that returns just count of valid activities so we can page them).

Activities GraphQl already exists, but we can't get only created or changed activities from a certain point of time, that's why an endpoint would help with that.

Proposal

Implement dedicated endpoint for this usecase.

TODO