-
Notifications
You must be signed in to change notification settings - Fork 149
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
fix: collectionReference.add() validation #925
Conversation
Codecov Report
@@ Coverage Diff @@
## master #925 +/- ##
=======================================
Coverage 96.58% 96.58%
=======================================
Files 25 25
Lines 15639 15639
Branches 1164 1164
=======================================
Hits 15105 15105
Misses 525 525
Partials 9 9 Continue to review full report at Codecov.
|
dev/test/collection.ts
Outdated
commit: request => { | ||
docId = request.writes![0].update!.name!; | ||
// Remove the auto-generated id and then verify that the rest of the | ||
// protobuf matches. |
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.
Oh, wow. Good fix for this issue that I definitely didn't see coming.
Fixes #924
Needed to convert data toFirestore first before performing validation. Also modified system test to use
CollectionReference.add()
.