Skip to content
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

Conversation

chemelnucfin
Copy link
Contributor

@chemelnucfin chemelnucfin commented Nov 28, 2017

Please wait until #4392 and #4464 is merged first.
Merged

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 28, 2017
@chemelnucfin chemelnucfin added the api: firestore Issues related to the Firestore API. label Dec 1, 2017
@chemelnucfin chemelnucfin assigned dhermes and chemelnucfin and unassigned dhermes Jan 15, 2018
@chemelnucfin chemelnucfin added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Jan 15, 2018
@chemelnucfin chemelnucfin added this to To Do in Feature Requests Jan 22, 2018
@chemelnucfin chemelnucfin changed the title Firestore: Distinguish FieldPath classes from field path strings Distinguish FieldPath classes from field path strings Feb 20, 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.

@chemelnucfin chemelnucfin force-pushed the 4378-fieldpathclass-part2 branch 7 times, most recently from 2ded7ab to 984eed5 Compare March 19, 2018 18:22
@chemelnucfin
Copy link
Contributor Author

@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.

@chemelnucfin chemelnucfin merged commit 59cfef1 into googleapis:master Mar 20, 2018
Feature Requests automation moved this from To Do to Done Q1 2018 Mar 20, 2018
@chemelnucfin chemelnucfin deleted the 4378-fieldpathclass-part2 branch March 20, 2018 19:22
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.
Projects
No open projects
Feature Requests
  
Done Q1 2018
Development

Successfully merging this pull request may close these issues.

None yet

4 participants