Consider merging online and local data when it's the first sync.
From manugarg on August 07, 2012 01:37:22
Consider this use case:
- I have configured page note on machine-I. There is some data and sync is functional.
- I have installed page notes on machine-II and already added some data. But sync is not setup.
- Now, when I try to set up sync on this machine, by the current logic, local data on machine-II will replace the data in cloud.
This is not the desired behavior. There are 2 possible solutions for this:
- While setting up sync for the first time, tell user that the local data will be wiped out if there is data present in cloud, and do that.
- Always try to merge data while giving priority to newer data in case of conflicts.
I prefer second option, as it causes less destruction of data and requires less user input.
Original issue: http://code.google.com/p/chrome-page-notes/issues/detail?id=11