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

fix: collectionReference.add() validation #925

Merged
merged 5 commits into from
Feb 18, 2020
Merged

fix: collectionReference.add() validation #925

merged 5 commits into from
Feb 18, 2020

Conversation

thebrianchen
Copy link

Fixes #924

Needed to convert data toFirestore first before performing validation. Also modified system test to use CollectionReference.add().

@thebrianchen thebrianchen added the api: firestore Issues related to the googleapis/nodejs-firestore API. label Feb 11, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 11, 2020
@codecov
Copy link

codecov bot commented Feb 11, 2020

Codecov Report

Merging #925 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d40ec6a...54c37b0. Read the comment docs.

@thebrianchen thebrianchen changed the title fix: collectionReferece.add() validation fix: collectionReference.add() validation Feb 11, 2020
commit: request => {
docId = request.writes![0].update!.name!;
// Remove the auto-generated id and then verify that the rest of the
// protobuf matches.
Copy link
Contributor

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.

dev/test/collection.ts Outdated Show resolved Hide resolved
@thebrianchen thebrianchen merged commit 19c2c75 into master Feb 18, 2020
@thebrianchen thebrianchen deleted the bc/adde branch February 18, 2020 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/nodejs-firestore API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add not working using withConverter
3 participants