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

Support waitForPendingWrites in secondary tabs #3821

Merged
merged 4 commits into from
Sep 21, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Sep 21, 2020

A user noticed that waitForPendingWrites doesn't work in secondary tabs. This is a one line fix + spec tests.

Fixes #3816

@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2020

🦋 Changeset is good to go

Latest commit: d4adc1e

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

@schmidt-sebastian schmidt-sebastian force-pushed the mrschmidt/waitforpendingwritesmultitab branch from d22d415 to 6899540 Compare September 21, 2020 19:28
@schmidt-sebastian schmidt-sebastian force-pushed the mrschmidt/waitforpendingwritesmultitab branch from 6899540 to 454e2f3 Compare September 21, 2020 19:33
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 21, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore

    Type Base (7bf7379) Head (ab6f540) Diff
    browser 249 kB 249 kB +8 B (+0.0%)
    esm2017 196 kB 196 kB +8 B (+0.0%)
    main 483 kB 483 kB +53 B (+0.0%)
    module 246 kB 246 kB +8 B (+0.0%)
    react-native 196 kB 196 kB +8 B (+0.0%)
  • @firebase/firestore/exp

    Type Base (7bf7379) Head (ab6f540) Diff
    browser 189 kB 189 kB +8 B (+0.0%)
    main 478 kB 478 kB +53 B (+0.0%)
    module 189 kB 189 kB +8 B (+0.0%)
    react-native 189 kB 189 kB +8 B (+0.0%)
  • @firebase/firestore/lite

    Type Base (7bf7379) Head (ab6f540) Diff
    main 141 kB 141 kB -8 B (-0.0%)
  • @firebase/firestore/memory

    Type Base (7bf7379) Head (ab6f540) Diff
    main 356 kB 356 kB -1 B (-0.0%)
  • firebase

    Type Base (7bf7379) Head (ab6f540) Diff
    firebase-firestore.js 287 kB 287 kB +8 B (+0.0%)
    firebase.js 830 kB 830 kB +8 B (+0.0%)

Test Logs

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM

"@firebase/firestore": patch
---

Fixes an issue that prevents `waitForPendingWrites()` from resolving in background tabs when multi-tab is used.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth linking to the specific issue we're addressing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

Choose a reason for hiding this comment

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

The changelog generator can automatically generate the issue link in the changelog by looking for issue links in the PR comment, so it's fine to not include it manually. No need to worry about 2 issue links - the generator will not generate one if it sees you manually included it.

@schmidt-sebastian schmidt-sebastian requested a review from a team as a code owner September 21, 2020 21:58
@schmidt-sebastian schmidt-sebastian merged commit 4dc8817 into master Sep 21, 2020
schmidt-sebastian added a commit to firebase/firebase-android-sdk that referenced this pull request Sep 22, 2020
@google-oss-bot google-oss-bot mentioned this pull request Sep 22, 2020
@firebase firebase locked and limited conversation to collaborators Oct 22, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/waitforpendingwritesmultitab branch November 9, 2020 22:38
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.

waitForPendingWrites() doesn't resolve with multi-tab persistence
4 participants