sync doc notes

This commit is contained in:
2024-09-24 17:06:52 -05:00
parent 8fdd128f1e
commit 541257ccea

29
SYNC.md Normal file
View File

@@ -0,0 +1,29 @@
# sync
Notes on the synchronization process by Todoist.
## How do edited, completed, deleted, rescheduled and uncompleted items respond?
Edited: Full object
Completed: `is_completed`, full object
Deleted: `is_deleted`, full object
TODO: Rescheduled, uncompleted
## How should synchronized items be identified/updated?
The `id` detail.
TODO: It is not well specified in the docs what the meaning of `v2_id` is.
## What data structure should be used to store synchronized items?
A dictionary with the `id` as the key.
## How and when should synchronization be triggered?
With the cron schedule, first thing.
## Is there a limit to the delay between synchronization?
Likely: if there is a limit, it should be handled automatically by the `full_sync` attribute.