-
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
firestore: add a FieldPath class #4378
Comments
Yes, this is accurate. |
@jba I would like some clarifications on the FieldPath (FP).
Thanks in advance. |
Sorry, just saw this. I think we figured out all the answers on the PR. |
@dhermes / @chemelnucfin: Can you give us an estimate for the completion of this change? |
I might be late to this, but let me answer: 1 - |
@chemelnucfin Can you provide an estimate for this issue? |
@schmidt-sebastian #4392 has been approved by jba, but dhermes would like to review it first before I merge it. |
@schmidt-sebastian Danny has been helping me quite a bit on spanner reviews and getting pull requests in for pubsub and a lot of others. I can understand that he's quite busy with other tasks. |
That's fine, just wanted to make sure that this doesn't get dropped. |
* #4378 - Field Path * review changes * 2nd review changes * 3rd review changes
@chemelnucfin Is there any work remaining on this, now that #4392 is closed? |
@schmidt-sebastian Could you please review #4466? |
The firestore client conflates dot-separated strings with field paths in the
update
methods. There should be two cases for top-level dict keys passed toupdate
:~*/[]
. There also can't be any empty parts. One reasonable approach is:FieldPath
, it is treated as-is.Where
FieldPath
is something like:Since it is now possible to pass a dict where the same effective path occurs twice, that needs to be checked explicitly.
E.g.
should be an error.
@schmidt-sebastian Confirm this is accurate.
The text was updated successfully, but these errors were encountered: