-
Notifications
You must be signed in to change notification settings - Fork 926
Apply range-filters in get when probing active-listener cache #4408
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
Conversation
🦋 Changeset detectedLatest commit: 4e8e453 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
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 |
Binary Size ReportAffected SDKs
Test Logs |
query.path | ||
); | ||
let view: View = syncPoint.getView(query, writesCache, serverCache, true); | ||
return view.getCompleteServerCache(query.path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schmidt-sebastian This seems to apply the filters for startAfter/endBefore, but it erroneously returns null for this test: https://github.com/firebase/firebase-js-sdk/blob/master/packages/database/test/query.test.ts#L3159-L3179.
Can you have a look at this? I'm trying to figure out why this is happening but not making much progress.
Size Analysis Report |
packages/database/test/query.test.ts
Outdated
const childOne = node.push(); | ||
const childTwo = node.push(); | ||
await childOne.set(1); | ||
await childTwo.set(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the tests still pass if you don't await
here? I would like to confirm that we correctly apply local writes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They do still pass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a changelog entry in response to https://firebase.google.com/support/release-notes/js#realtime-database_5
getServerValue(query: Query): Node | null { | ||
const path = query.path; | ||
let serverCache: Node | null = null; | ||
let foundAncestorDefaultView = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
foundAncestorDefaultView
is not used and can be removed.
Co-authored-by: Sebastian Schmidt <[email protected]>
Co-authored-by: Sebastian Schmidt <[email protected]>
@Feiyang1 for code-owner review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional tests LGTM. Thanks for all the extra effort!
Co-authored-by: Sebastian Schmidt <[email protected]>
Co-authored-by: Sebastian Schmidt <[email protected]>
Co-authored-by: Sebastian Schmidt <[email protected]>
…se-js-sdk into jw/fix-get-again
No description provided.