-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/remote/watcher: Fetch resynced folders content (#2100)
When a folder has been unsynced via the differential sync API, it is seen as deleted by the Desktop client and so are its children. However, when the same folder is resynced, the Desktop client will only see a change for the folder. To make sure we'll resync all its content, we will fetch it and process all found remote documents as additions. The way we detect a folder for which we need to fetch the content is if we detect the addition of a folder whose remote revision is greater than 1 (i.e. it was not just created on the Cozy). If a new folder is modified on the Cozy before the client has detected its addition via the changes feed, we'll treat it as a resynced folder and fetch its content while we already have it in the feed. We expect this not to be an issue though. the remote watcher analysis should detect the second occurrence as an up-to-date change since the remote revision will be the same.
- Loading branch information
Showing
23 changed files
with
631 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.