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

Add Snapshot Listeners to firestore-exp #3317

Merged
merged 5 commits into from
Jun 30, 2020
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

This PR adds the Snapshot Listeners to the firestore-exp SDK. It does not add tests, since I want these functions to be tested using the main integration tests.

The PR also adds the call to validateHasExplicitOrderByForLimitToLast to all Query evaluations. This is needed to make sure that limitToLast() is not invoked on an empty Query order, since the backend does not support a reverse index on the document ID.

Source for all this code is https://github.com/firebase/firebase-js-sdk/blob/master/packages/firestore/src/api/database.ts#L1136 and https://github.com/firebase/firebase-js-sdk/blob/master/packages/firestore/src/api/database.ts#L2100

@changeset-bot
Copy link

changeset-bot bot commented Jun 29, 2020

🦋 Changeset is good to go

Latest commit: f412e9b

We got this.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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 Jun 29, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore

    Type Base (b8c0ceb) Head (3000469) Diff
    browser 248 kB 248 kB -19 B (-0.0%)
    esm2017 194 kB 194 kB -1 B (-0.0%)
    main 493 kB 493 kB -31 B (-0.0%)
    module 246 kB 246 kB -19 B (-0.0%)
  • @firebase/firestore/exp

    Type Base (b8c0ceb) Head (3000469) Diff
    main 277 kB 282 kB +4.32 kB (+1.6%)
  • @firebase/firestore/lite

    Type Base (b8c0ceb) Head (3000469) Diff
    main 141 kB 141 kB +72 B (+0.1%)
  • @firebase/firestore/memory

    Type Base (b8c0ceb) Head (3000469) Diff
    browser 186 kB 186 kB -19 B (-0.0%)
    esm2017 145 kB 145 kB -1 B (-0.0%)
    main 363 kB 363 kB -31 B (-0.0%)
    module 184 kB 184 kB -19 B (-0.0%)
  • firebase

    Type Base (b8c0ceb) Head (3000469) Diff
    firebase-firestore.js 286 kB 286 kB -20 B (-0.0%)
    firebase-firestore.memory.js 226 kB 226 kB -20 B (-0.0%)
    firebase.js 820 kB 820 kB -20 B (-0.0%)

Test Logs

@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/snapshots branch July 9, 2020 17:44
@firebase firebase locked and limited conversation to collaborators Jul 31, 2020
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.

3 participants