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

Don't switch network status to UNKNOWN during user change #3700

Merged
merged 7 commits into from
Aug 28, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Aug 28, 2020

The user change handling on Web resets the OnlineStatus to unknown even if we are offline. This breaks offline behavior for empty snapshots from cache, as we will stop raising empty snapshots.

This fixes a regression in the Web client. The Android and iOS client should have the correct behavior (see Android: https://github.com/firebase/firebase-android-sdk/blob/751684d3073329adef4cbca8865efa22c953fa5d/firebase-firestore/src/main/java/com/google/firebase/firestore/remote/RemoteStore.java#L319)

@changeset-bot
Copy link

changeset-bot bot commented Aug 28, 2020

🦋 Changeset is good to go

Latest commit: 72e5195

We got this.

This PR includes changesets to release 8 packages
Name Type
@firebase/firestore Patch
firebase Patch
firebase-exp Patch
firebase-firestore-integration-test Patch
@firebase/rules-unit-testing Patch
@firebase/testing Patch
firebase-namespace-integration-test Patch
firebase-messaging-integration-test Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 28, 2020

Size Analysis Report

Affected Products

No changes between base commit (0dfd516) and head commit (bd90a54).

Test Logs

@schmidt-sebastian
Copy link
Contributor Author

@dconeybe I had to change the code because it caused the IndexedDB retry to fail.

@schmidt-sebastian schmidt-sebastian merged commit 249d40c into master Aug 28, 2020
@google-oss-bot google-oss-bot mentioned this pull request Sep 8, 2020
@firebase firebase locked and limited conversation to collaborators Sep 28, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/credentialchangenetwork branch November 9, 2020 22:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants