-
Notifications
You must be signed in to change notification settings - Fork 64
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
Orphaned embedded objects are not deleted when migrating from Object to Embedded Object #1464
Comments
I assume that this is exactly the same issue that used to be in the Java SDK: realm/realm-java#7769 and was fixed by realm/realm-java#7772 |
Hi @sipersso. Thanks for the report. It is a bit different in Kotlin as we do not yet support manual migration and can handle this on a per class basis. Only option in Kotlin is to set the default behavior on the configuration. We will see to expose that option on the configuration. |
I don't understand. I did supply a migration block and was able to do the same workaround as I was previously using in java before it was handled automatically. What default behavior on the configuration are you talking about? |
FIY: Same goes for when an object has multiple incoming links. This doesn't work either, but I guess it is the same issue? Any updates on when this would be fixed? |
@rorbech any info on when this might be released? I am currently blocked from releasing a big feature because of this. Would be nice to get a feel for how long it might take so I can adjust priorities. |
@cmelchior great news! Thanks for the update |
I noticed that #1490 is now merged. Any updates on the release? I can use the snapshot build for beta testing, but hesitate to use snapshots in production. |
How frequently does the bug occur?
Description
According this ticket migration from object to embedded should now be automatic in core and orphaned children should automatically be deleted: realm/realm-core#5737
This doesn't seem to work in the Kotlin SDK. I have a unit test where I have an orphaned object and do an upgrade. Instead of deleting the orphaned object, the migration fails and the app crashes. I have no such issues on iOS
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
1.10.1
What Atlas App Services are you using?
Are you using encryption?
Platform OS and version(s)
Android
Build environment
Android Studio version: ...
Android Build Tools version: ...
Gradle version: ...
The text was updated successfully, but these errors were encountered: