KEMBAR78
feat: use update_transform when possible by thebrianchen · Pull Request #949 · googleapis/nodejs-firestore · GitHub
Skip to content

Conversation

@thebrianchen
Copy link

No description provided.

@thebrianchen thebrianchen self-assigned this Mar 3, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 3, 2020
Copy link
Author

@thebrianchen thebrianchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did another pass with your comments, thanks!

fieldTransforms,
},
};
return fieldTransforms;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: Use map to turn this function into one line.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

attempted, but used Array.from()

request,
set({
document: document('documentId'),
mask: updateMask(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break the conformance tests. We should also not set an empty update mask.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed here and in other unit tests that used an empty update mask

Copy link
Contributor

@schmidt-sebastian schmidt-sebastian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you create a "bulk writer" branch to merge this into? Otherwise, we have to wait for this to be in Prod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants