This bug presents itself when using the Local Datastore and saveEventually on iOS.
When an object is created and updated while offline, the updates go to the backend as new objects.
View a demonstration here: https://youtu.be/kVvfT7gtu4M
To run this project:
- Create a new Parse app on Parse.com
- Create a test user in the Parse app (the source code assumes user:
test@test.com
, password:test
) - Run a
pod install
to install the Parse pod. - Set your app credentials in
StartParse.swift
To demonstrate the bug
- Take your device offline
- Tap the save button 5 times
- Tap the Update button 3 times
- Go online and look at the
Thingy
object records. The 5 Thingy objects were not created.