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

Use async open for FLX Realms #1439

Merged
merged 3 commits into from
Jun 30, 2023
Merged

Use async open for FLX Realms #1439

merged 3 commits into from
Jun 30, 2023

Conversation

cmelchior
Copy link
Contributor

@cmelchior cmelchior commented Jun 29, 2023

Closes #1438

I also discovered that we didn't check whether a realm file existed or not before triggering waitForInitialRemoteData, this meant that if waitForInitialRemoteData was enabled, the device would always require a network connection before opening the realm file, even after being opened for the first time.

It isn't really possible to write a test for this since it would require us to be able to cut the internet connection between opening the Realm for the first and second time. But I verified the behavior manually.

Christian Melchior added 2 commits June 30, 2023 09:24
Fix bug causing async open to run every time
@blagoev
Copy link
Contributor

blagoev commented Jun 30, 2023

Perhaps

adb shell svc wifi enable/disable
adb shell svc data enable/disable 

can be used, but even then a test like this should be run in isolation from the rest.

Copy link
Contributor

@clementetb clementetb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@rorbech rorbech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me, but can't really grasp if we changed the behavior if offline when opening a FLX realm for the first time. If so we should maybe mention that.

CHANGELOG.md Show resolved Hide resolved
@cmelchior cmelchior merged commit 842decf into releases Jun 30, 2023
@cmelchior cmelchior deleted the cm/flx-async-open branch June 30, 2023 11:56
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants