Skip to content
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

Unable to load an existing partition based local database (back of synced realm) to new flexible sync realm #6670

Closed
duncangroenewald opened this issue May 17, 2024 · 2 comments

Comments

@duncangroenewald
Copy link

How frequently does the bug occur?

Always

Description

We are currently trying to reload the data from an existing partition based synced realm app that has had schema changes made using a javascript program that reads the local realm file, opens the new Synced Realm and writes the data to the new synced realm.

The load all works fine except the sync fails because the App is a flexible Sync app. How do we load the existing data to the flexible sync real such that the existing Swift and JS clients will continue to work.

Your documentation seems to indicate that no client side code changes are required but it seems that the clients need to open the realm as flexible sync realms - which would obviously require a code change to the clients.

Presumably they will be unable to open the partition based synced realm if this change is made?

If someone could provide a 'dummies' guide to converting from partition based sync to flexible sync that would be much appreciated.

Thanks

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

Connect to new flexible sync app from existing JS client and write data. No errors are shown and no client sync progress is shown.

Version

11.10.2

What services are you using?

Atlas Device Sync

Are you using encryption?

No

Platform OS and version(s)

macOS Sonoma

Build environment

Which debugger for React Native: NA

node.js

Cocoapods version

NA

Copy link

sync-by-unito bot commented May 17, 2024

➤ PM Bot commented:

Jira ticket: RJS-2819

@duncangroenewald
Copy link
Author

OK - my bad. I was not using a string to define the class/object in the subs.add() function !!!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant