-
Notifications
You must be signed in to change notification settings - Fork 937
Implement Firestore IndexBackfiller #6261
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
* Integrate Document Overlay with the SDK. * we should call ObjectValue.delete if value is null. * Remove unnecessary null check from MemoryDocumentOverlayCache.saveOverlay(), like is done in firebase/firebase-android-sdk#3518 * Address comments. * Port changes from Android SDK PR#3420. Note that we are not going to do any processing in the background. * Port overlay recalculation bug (Android SDK PR #3495). * Fix overlay bug when offline (Port Android SDK PR #3537). * Address feedback. * Better null check. Co-authored-by: Denver Coneybeare <[email protected]>
* Overlay migration * Remove intermediate state. * Add test. * Address feedback.
|
* wip. * remove console.log. * remove .only for test. * lint fixes.
…to tomandersen/index-backfiller # Conflicts: # packages/firestore/src/core/component_provider.ts # packages/firestore/src/local/index_backfiller.ts # packages/firestore/src/local/persistence_promise.ts # packages/firestore/test/unit/specs/spec_test_components.ts
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1This report is too large (848,661 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 |
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.
I have not review the tests yet, want to give you some feedback first.
This is porting firebase/firebase-android-sdk#3657 to the Web SDK. The majority of the code was ported as a part of other PRs such as #6153. The only thing remaining is to port the tests in SQLiteLocalStoreTest.java which will be done as a part of #6261.
This is porting firebase/firebase-android-sdk#3657 to the Web SDK. The majority of the code was ported as a part of other PRs such as #6153. The only thing remaining is to port the tests in SQLiteLocalStoreTest.java which will be done as a part of #6261.
…into tomandersen/index-backfiller
Changeset File Check ✅
|
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.
you can run yarn prettier && yarn lint:fix
(in packages/firestore
directory) before you run git push
so you can catch format/lint issues locally.
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.
Thanks for addressing my comments. Pass to Andy for thorough review and approval.
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.
LGTM!
}) | ||
); | ||
|
||
// Documents before read time should not be fetched. |
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.
Move this line to below
'coll2' | ||
); | ||
}); | ||
|
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.
I think you are missing:
testBackfillUsesDocumentKeyOffsetForLargeSnapshots
?
Implement index backfiller