-
Notifications
You must be signed in to change notification settings - Fork 937
Overlay migration #6131
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
Overlay migration #6131
Conversation
|
71f0862
to
0a979d0
Compare
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1This report is too large (410,370 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.
Hm, I thought I would not like this approach but it is actually cleaner that your other proposal. I will let you pick one and will do my next round of reviews when we have a winner + some tests :)
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.
LG. Please make sure to run at least one manual test for this upgrade.
batchId: 5, | ||
localWriteTimeMs: 1337, | ||
baseMutations: undefined, | ||
mutations: [testWritePending] |
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.
Should this be user3 with no mutations?
packages/firestore/test/unit/local/indexeddb_persistence.test.ts
Outdated
Show resolved
Hide resolved
} | ||
).next(() => | ||
// Populate the mutation queues' metadata | ||
PersistencePromise.waitFor([ |
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 probably use the loop above to also add this data and then just simply call .put({userId: user, lastAcknowledgedBatchId: -1, lastStreamToken: ''})
at each iteration. That way you only have one source of truth for your data.
packages/firestore/test/unit/local/indexeddb_persistence.test.ts
Outdated
Show resolved
Hide resolved
packages/firestore/test/unit/local/indexeddb_persistence.test.ts
Outdated
Show resolved
Hide resolved
* Integrate Document Overlay with the SDK (#6123) * 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 (#6131) * Overlay migration * Remove intermediate state. * Add test. * Address feedback. * Update overlay migration code to use DbMutationBatchStore (#6268) * wip. * remove console.log. * remove .only for test. * lint fixes. * Backport overlay bug fixes (Android PR 3691 3623) (#6274) * Porting Android PR #3623. * Port Android PR #3691. * address feedback and add missing tests. Co-authored-by: Denver Coneybeare <[email protected]>
No description provided.