-
Notifications
You must be signed in to change notification settings - Fork 938
Add bundle.proto d.ts and introduce IDB object stores for bundles. #3073
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
Binary Size ReportAffected SDKs
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.
LGTM. Can you add serialization logic to LocalSerializer and write tests to verify your schema? This can be done in follow up
option objc_class_prefix = "FSTPB"; | ||
option php_namespace = "Firestore\\Proto"; | ||
|
||
// Encodes a query saved in the bundle. |
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.
Nit: s/Encodes/Describes
Optional.
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.
Done.
// `BundleElement`. | ||
// Only one `BundleMetadata` is expected, and it should be the first element. | ||
// The named queries follow after `metadata`. Every `document_metadata` is | ||
// immediately followed by a `document`. |
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.
The last part is not true anymore, is it? We skip document data for non-existing documents.
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.
Updated.
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.
Thank you! Will add more tests when we have serialization logic.
option objc_class_prefix = "FSTPB"; | ||
option php_namespace = "Firestore\\Proto"; | ||
|
||
// Encodes a query saved in the bundle. |
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.
Done.
// `BundleElement`. | ||
// Only one `BundleMetadata` is expected, and it should be the first element. | ||
// The named queries follow after `metadata`. Every `document_metadata` is | ||
// immediately followed by a `document`. |
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.
Updated.
…3073) * Manual copy proto and create bundle_proto.d.ts * IndexedDb schema change to introduce bundle object stores. * Renaming interfaces without leading I * Reordering imports * Address comments * Add totalBytes and totalDocuments
No description provided.