Skip to content
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

feat(firestore): serverTimestampBehavior #5556

Merged
merged 3 commits into from
Jul 30, 2021
Merged

feat(firestore): serverTimestampBehavior #5556

merged 3 commits into from
Jul 30, 2021

Conversation

mikehardy
Copy link
Collaborator

Description

This is 100% from @JanErikFoss - just carried his commits into this PR after clobbering #5514

Implements serverTimestampBehavior as a firestore setting.
It's currently impossible to implement SnapshotOptions as they work in the javascript sdk, this is the next best option in my opinion.

Related issues

#5514

Release Summary

Squash-merge - PR title is conventional

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
    • Yes
  • My change supports the following platforms;
    • Android
    • iOS
  • My change includes tests;
    • e2e tests added or updated in packages/\*\*/e2e
    • jest tests added or updated in packages/\*\*/__tests__
  • I have updated TypeScript types that are affected by my change.
  • This is a breaking change;
    • Yes
    • No

Test Plan


Think react-native-firebase is great? Please consider supporting the project with any of the below:

@vercel
Copy link

vercel bot commented Jul 30, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

react-native-firebase – ./

🔍 Inspect: https://vercel.com/invertase/react-native-firebase/68cNq9VtVNQpLnuvELznyR6bKKkF
✅ Preview: https://react-native-firebase-git-pr-5514-invertase.vercel.app

react-native-firebase-next – ./website_modular

🔍 Inspect: https://vercel.com/invertase/react-native-firebase-next/BxWgJy8iX1f8buxH33fs9xtx4U35
✅ Preview: Canceled

@mikehardy mikehardy mentioned this pull request Jul 30, 2021
8 tasks
@mikehardy
Copy link
Collaborator Author

Previous PR had CLA signed on same commits carried in to here, this is just waiting on CI

@mikehardy mikehardy added the Workflow: Pending Merge Waiting on CI or similar label Jul 30, 2021
@mikehardy
Copy link
Collaborator Author

Yes! All green (again), this time even with the vercel thing that fomented my awful branch clobber (sorry again).
Totally good to go, this is a really nice PR, thank you!

@mikehardy mikehardy merged commit 60fe72e into master Jul 30, 2021
@mikehardy mikehardy deleted the pr/5514 branch July 30, 2021 22:51
@mikehardy mikehardy removed the Workflow: Pending Merge Waiting on CI or similar label Jul 30, 2021
androidIsForVivek pushed a commit to androidIsForVivek/react-native-firebase that referenced this pull request Aug 9, 2021
* feat: serverTimestampBehavior
* Add test for firestore().settings({ serverTimestampBehavior })
* Add e2e tests

Co-authored-by: Jan Erik Foss <solafosstek@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants