We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you follow the reproduction steps at Automattic/simplenote-android#560 (comment) in Simplenote, you'll get data loss for the last line that you added.
I think this is an issue with the way we are transforming a diff to apply local and remote changes at once to an object here: https://github.com/Simperium/simperium-android/blob/develop/Simperium/src/main/java/com/simperium/client/Bucket.java#L966
I tried a test where I added the text One and Two while offline around a paragraph that was deleted remotely. The incoming patch was:
One
Two
incoming
{"content":{"o":"d","v":"=683\t-815\t+DELETED!"},"modificationDate":{"o":"r","v":1.537995756631E9}}
The local patch was:
local
{"content":{"o":"d","v":"=685\t+e%0A%0AOn\t=813\t+%0A%0ATwo"},"modificationDate":{"o":"r","v":1537995767}}
But the resulting transformed diff was:
{"modificationDate":{"o":"r","v":1537995767}}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you follow the reproduction steps at Automattic/simplenote-android#560 (comment) in Simplenote, you'll get data loss for the last line that you added.
I think this is an issue with the way we are transforming a diff to apply local and remote changes at once to an object here: https://github.com/Simperium/simperium-android/blob/develop/Simperium/src/main/java/com/simperium/client/Bucket.java#L966
I tried a test where I added the text
One
andTwo
while offline around a paragraph that was deleted remotely. Theincoming
patch was:The
local
patch was:But the resulting transformed diff was:
The text was updated successfully, but these errors were encountered: