-
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
Distinguish FieldPath classes from field path strings #4466
Merged
chemelnucfin
merged 2 commits into
googleapis:master
from
chemelnucfin:4378-fieldpathclass-part2
Mar 20, 2018
Merged
Distinguish FieldPath classes from field path strings #4466
chemelnucfin
merged 2 commits into
googleapis:master
from
chemelnucfin:4378-fieldpathclass-part2
Mar 20, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5daa7e0
to
8e1dd56
Compare
8e1dd56
to
d25c432
Compare
schmidt-sebastian
suggested changes
Mar 16, 2018
# "Cheat" and use OrderedDict-s so that iteritems() is deterministic. | ||
field_updates = collections.OrderedDict(( | ||
('a.b.c', 10), | ||
('d', None), | ||
('e.f1', [u'no', b'yes']), | ||
('e.f2', 4.5), | ||
(FieldPath.from_string('e.f3').to_api_repr(), (3, 1)), |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
2ded7ab
to
984eed5
Compare
984eed5
to
c5c3487
Compare
@schmidt-sebastian I fixed a bug where the regex did not match the entire group, and added some new tests to ensure the behavior, PTAL. Thanks. |
schmidt-sebastian
approved these changes
Mar 20, 2018
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 Firestore API.
cla: yes
This human has signed the Contributor License Agreement.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please wait until #4392 and #4464 is merged first.Merged