-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
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
Migration Handling: New Attributes #518
Comments
Hi @jleandroperez, Nice to see all the improvements and continued development on the framework! Keep up the great work! Regards, Patrick |
Thanks for the feedback @prvnl!! Hope you're doing (more than) great sir! |
Just one thought: Rather than detecting migrations (not completely sure if this is possible in the extend you'd need), what about saving the failing changes (those that cause the But, then again, I have no idea of how the internals of Simperium work, so that's probably not very useful. ;-) |
@danielr the remote state (should be saved) within the Perhaps migrations could be detected by means of On migration we could just fire a process that (perhaps) would detect added fields, and replay the remote changes. This definitely requires a bit of R&D, but at first glance, seems achievable!. Thanks for your feedback! |
After a (Light / Heavyweight) migration, the Data Model might get:
Attributes Removed:
This is currently supported, and no further action is required.
Attributes Renamed:
If we are to support backwards compatibility, the app needs a mechanism to map the "Remote Attribute Name" into the "Local and New" attribute name. We'll add support for this, in Issue #480.
Attribute Addition:
The first client that gets 'New Attributes' will work without further issues. But if there are (still) clients using the old data model, any changes they get over the "New Attributes" will, expectedly, fail.
In this particular case, the Ghost Data is expected to be updated, nevertheless. Let's implement a mechanism that:
The text was updated successfully, but these errors were encountered: