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

feat: add support for not-in and not-eq query operators #202

Merged
merged 10 commits into from Oct 21, 2020

Conversation

HemangChothani
Copy link
Contributor

Fixes #189

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 24, 2020
@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/python-firestore API. label Sep 24, 2020
@@ -847,7 +849,7 @@ def _enum_from_op_string(op_string) -> Any:

Args:
op_string (str): A comparison operation in the form of a string.
Acceptable values are ``<``, ``<=``, ``==``, ``>=``
Acceptable values are ``<``, ``<=``, ``==``, ``!=``, ``>=``
Copy link
Contributor

@crwilcox crwilcox Sep 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this method also accept "not-in, array_contains" and more? This may be accurate, but I wanted to double check :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@crwilcox Yes, this method accept all the values including array_contains we don't have any special condition for that, limitation of acceptable values are just mentioned in doc-string.
Is this question related to #203 issue?

@crwilcox crwilcox requested a review from a team October 6, 2020 21:29
@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 7, 2020
@HemangChothani HemangChothani added kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. labels Oct 8, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2020
@tseaver
Copy link
Contributor

tseaver commented Oct 9, 2020

@HemangChothani Please fix the conformance test failure on this branch.

}
}
]
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upstream for this file is authoritative: we are not supposed to modify / remove the copied-in files.

@BenWhitehead please clarify the intention here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR to update the operator in the upstream files: googleapis/conformance-tests#41

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Above PR has been merged and can be pulled into the project to test the actual case for a not supported operator.

Copy link
Contributor

@tseaver tseaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HemangChothani Please revert (or git rebase -i to edit out) commit 420788b and copy in the version of query-invalid-operator.json updated by googleapis/conformance-tests#41.

@tseaver tseaver changed the title feat: add support of not-in and not-eq feat: add support for not-in and not-eq query operators Oct 13, 2020
@tseaver tseaver merged commit 1d09f21 into googleapis:master Oct 21, 2020
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 googleapis/python-firestore API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for != and not-in queries
5 participants