Open cliffordten opened 2 years ago
Thanks for this feedback, with touching base with the team focused on DataStore, this is a feature request. We have gone ahead and marked it as such and will let you know once we are able to pick up this work. Thanks!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
DataStore
Amplify Categories
api
Environment information
Describe the bug
The problem is this: When we want to add a new functionality, it sometimes happens that the database schema is modified. When this modification is done and we have executed the amplify push command, the backend is updated. Unfortunately the application in production with the old schema can no longer synchronize. Also all the operations performed from that moment on this application remain locally and the data are never sent to the server again. As a consequence when Play store or App store validate the update, this update wipes all the local data and are thus definitively lost.
Expected behavior
The loss of data leads to a bad experience for our users. So we want this schema change not to affect the data of the application in production before and after the update.
Suggestions: could we just do a local merge of the entities? So existing local fields that no longer exist on the server are ignored during write operations and read operations accept all other added fields but set the values to null
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response