This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not delete objectIds when sync is reset
fix #7405
- Loading branch information
aff4cf5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diracdeltas deleting objectIds is important here because that's how
syncBookmark()
determines to do the initial sync. if the user comes back to sync in +3 months, they would like all their existing bookmarks to be synced to a new profile.aff4cf5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayumi what if instead of deleting the objectId, we add a field to indicate which profile this was synced for in this code block? then if the user is syncing to a new profile, the bookmarks are re-synced and assigned new object IDs. otherwise nothing happens.
i'm assuming this is only needed for bookmarks right now
aff4cf5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diracdeltas i like it
aff4cf5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweet will do
aff4cf5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we set the sync profile field here or whenever syncing bookmarks?
aff4cf5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think here is ok, it is only a problem when sync is reset