-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Python 3 Firestore DocumentReference.update fails with integer key in update data #5489
Comments
The canonicalization is needed only to set up the field mask when merging. |
Hmm, that isn't a correct invocation of The example you posted before that is correct. However, I'm unable to reproduce: see PR #5895, which adds a system test calling Can you reproduce with the current release of |
@jdubinsky Please feel free to reopen if you can suggest a reproduction case different than the new system test added in 9dc2514. |
@tseaver Those tests look valid to me. Here's some more info just to clarify (I've also updated the invalid repo step (it was from some custom code written on top of the firestore library):
|
Attempt to reproduce issue #5489: the new system tests both pass.
OS
OSX 10.13.4
Python version
Python 3.6.5
Library version
Stack trace
Repro steps
document.update
{'14': 'active'}
document.update({'14': 'active'})
(I reported a similar python 2 issue that got fixed in the last release Firestore DocumentReference.update fails with integer path #4320)
Code sample
Results in the stack trace above.
However, the following works:
And a set call with the same integer string works:
The text was updated successfully, but these errors were encountered: