-
Notifications
You must be signed in to change notification settings - Fork 150
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: use update_transform when possible #949
Conversation
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.
did another pass with your comments, thanks!
dev/src/document.ts
Outdated
fieldTransforms, | ||
}, | ||
}; | ||
return fieldTransforms; |
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.
Optional: Use map
to turn this function into one line.
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.
attempted, but used Array.from()
dev/test/document.ts
Outdated
@@ -913,6 +913,8 @@ describe('set document', () => { | |||
requestEquals( | |||
request, | |||
set({ | |||
document: document('documentId'), | |||
mask: updateMask(), |
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.
This will break the conformance tests. We should also not set an empty update mask.
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.
removed here and in other unit tests that used an empty update mask
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.
Can you create a "bulk writer" branch to merge this into? Otherwise, we have to wait for this to be in Prod.
No description provided.