fix(firestore): serverTimestamps implement correct behavior for 'estimate' | 'previous' | 'none'#9018
fix(firestore): serverTimestamps implement correct behavior for 'estimate' | 'previous' | 'none'#9018russellwheatley wants to merge 5 commits into
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request adds support for SnapshotOptions.serverTimestamps to the Firestore module in react-native-firebase. By enabling the passing of server timestamp behaviors (estimate, previous, none) from the native side to the JavaScript layer, it allows for more granular control over how document data is retrieved and interpreted. This change includes updates to native serialization logic, TypeScript type definitions, and robust testing to ensure feature parity and correctness across platforms. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request implements support for SnapshotOptions.serverTimestamps in FirestoreDocumentSnapshot.data() and get() methods across Android, iOS, and Web platforms. The changes include updating native serialization logic to provide data for all timestamp behaviors (estimate, previous, and none), modifying the DocumentSnapshot class to handle these options, and updating type definitions. Comprehensive unit, E2E, and type tests have been added to verify the new functionality. I have no feedback to provide.
Description
fixes #9016
Related issues
Release Summary
Checklist
AndroidiOSOther(macOS, web)e2etests added or updated inpackages/\*\*/e2ejesttests added or updated inpackages/\*\*/__tests__Test Plan
Think
react-native-firebaseis great? Please consider supporting the project with any of the below:React Native FirebaseandInvertaseon Twitter