Skip to content

Firestore: query.test.ts: improve the test that resumes a query with existence filter to actually validate the existence filter. #7149

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

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Mar 23, 2023

This PR improves the test 'resuming a query should use existence filter to detect deletes' in query.test.ts, which was added by the previous PR #7134, to also validate that the existence filter sent from Watch was correct. This was achieved by adding some test-only "hooks" into the SDK's internals that enable the test to "listen" for existence filter mismatches.

Ported to the Android SDK in firebase/firebase-android-sdk#4813
Ported to the iOS SDK in firebase/firebase-ios-sdk#11209

…existence filter to actually validate the existence filter.

This builds upon the test added in #7134
@dconeybe dconeybe self-assigned this Mar 23, 2023
@changeset-bot
Copy link

changeset-bot bot commented Mar 23, 2023

⚠️ No Changeset found

Latest commit: ef6f880

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

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

Click here to learn what changesets are, and how to add one.

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

@google-oss-bot
Copy link
Contributor

Size Report 1

Affected Products

  • @firebase/firestore

    TypeBase (480d7d5)Merge (279bfa2)Diff
    browser278 kB278 kB+587 B (+0.2%)
    esm5346 kB346 kB+737 B (+0.2%)
    main553 kB554 kB+884 B (+0.2%)
    module278 kB278 kB+587 B (+0.2%)
    react-native278 kB279 kB+587 B (+0.2%)
  • bundle

    TypeBase (480d7d5)Merge (279bfa2)Diff
    firestore (Persistence)283 kB284 kB+567 B (+0.2%)
    firestore (Query Cursors)221 kB222 kB+567 B (+0.3%)
    firestore (Query)219 kB220 kB+567 B (+0.3%)
    firestore (Read data once)206 kB207 kB+567 B (+0.3%)
    firestore (Realtime updates)209 kB209 kB+567 B (+0.3%)
  • firebase

    TypeBase (480d7d5)Merge (279bfa2)Diff
    firebase-compat.js750 kB750 kB+558 B (+0.1%)
    firebase-firestore-compat.js323 kB324 kB+558 B (+0.2%)
    firebase-firestore.js327 kB327 kB+588 B (+0.2%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/ERUxBIcV4v.html

@google-oss-bot
Copy link
Contributor

Size Analysis Report 1

This report is too large (567,931 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/i6RVZtJ1Tj.html

dconeybe added a commit to firebase/firebase-android-sdk that referenced this pull request Mar 23, 2023
… existence filter to actually validate the existence filter.

This is a port of firebase/firebase-js-sdk#7149, and builds upon the test added in #4799.
dconeybe added a commit to firebase/firebase-android-sdk that referenced this pull request Mar 23, 2023
… existence filter to actually validate the existence filter.

This is a port of firebase/firebase-js-sdk#7149, and builds upon the test added in #4799.
dconeybe added a commit to firebase/firebase-android-sdk that referenced this pull request Mar 23, 2023
… existence filter to actually validate the existence filter.

This is a port of firebase/firebase-js-sdk#7149, and builds upon the test added in #4799.
@dconeybe dconeybe requested a review from milaGGL March 23, 2023 14:34
@dconeybe dconeybe merged commit eb04945 into master Mar 24, 2023
@dconeybe dconeybe deleted the dconeybe/QueryExistenceFilterTest2 branch March 24, 2023 00:16
@firebase firebase locked and limited conversation to collaborators Apr 23, 2023
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