Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:web_api:v3:syncing [2019/03/19 05:37] – [Full-Library Syncing] dstillman | dev:web_api:v3:syncing [2019/05/25 06:54] – [Collection/Tag Deletions and Syncing] dstillman | ||
---|---|---|---|
Line 14: | Line 14: | ||
* A version number for each library | * A version number for each library | ||
* A version number and a boolean '' | * A version number and a boolean '' | ||
- | * A flag indicating that a downloaded | + | * A list of downloaded |
===== Version Numbers ===== | ===== Version Numbers ===== | ||
Line 328: | Line 328: | ||
Note that multi-object endpoints should always be used for large operations. Using single-object endpoints excessively could result in throttling by the server. | Note that multi-object endpoints should always be used for large operations. Using single-object endpoints excessively could result in throttling by the server. | ||
- | |||
- | ===== Collection/ | ||
- | |||
- | A collection or tag deletion will cause all associated items to be updated on the server, and the updated items will be set to the library version returned by the deletion request. This interaction between object types can result in sync conflicts if clients don't take special precautions when performing these actions. | ||
- | |||
- | Clients have two options for performing collection and tag deletions: | ||
- | |||
- | ==== Re-upload Items and Delete Collection/ | ||
- | |||
- | This method is appropriate for clients that sync the entire library. | ||
- | |||
- | When deleting a collection/ | ||
- | |||
- | ==== Delete Collection/ | ||
- | |||
- | This method is appropriate for clients that will not necessarily have all items associated with the collection/ | ||
- | |||
- | When deleting a collection/ | ||
- | |||
- | However, a conflict can still occur if an associated item is modified locally in other ways and not synced to the server before the collection/ | ||
- | |||
- | To avoid this, clients can store a pristine copy of the item data (not counting collections and tags) before modifying an item locally. This will allow the client to determine what local and remote changes have been made since the item was last downloaded. | ||
- | |||
- | Then, when a conflict occurs, if the server' | ||
- | |||
- | If the server item data doesn' | ||
- | |||
- | If the server collections/ | ||
- | |||
- | |||