-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update firestore filtering #480
Conversation
@spbnick , I am not sure why check_deployment is still skipped? It is because of failing flake8? |
Yeah, it's only executed when everything else has passed, IIRC, to save resources. |
1d71f0f
to
f777707
Compare
f558682
to
a67dd92
Compare
Oh it passes now after re-run :D. @spbnick could you review my PR? It resolves the warning. |
Most of the tests you can run with just The general workflow looks something like this: ./cloud deploy "<gcp_project>" "<namespace>" 1 -v --smtp-mocked --test --heavy-asserts # Create a deployment in your project
./cloud shell "<gcp_project>" "<namespace>" 1 --smtp-mocked --test --heavy-asserts # Start a shell with environment variables pointing to the deployment
export KCIDB_DEPLOYMENT="This deployment is empty" # Only do this with *actual* empty deployments, needed for the monitor test
pytest # Run the tests, repeat as many times as necessary, with whatever options you need
exit # Exit the shell
./cloud withdraw "<gcp_project>" "<namespace>" 1 -v --smtp-mocked --test # Withdraw (destroy) the deployment (leaving some shared objects behind) Where There's of course much more to it, but you can start with these, and modify, after reading the corresponding |
Ah great! However, in general the test shouldn't be flaky and this warrants investigation. Don't rerun it if you see it again, let me see what's going on first, please. The change looks good, but the commit message could be better. As such it reads like "Change firestore filtering", and doesn't say much. Could you make it clearer? Even better if it has a reference to the Google documentation covering this change in the API. Thank you 🙇♂️ |
Fix: #431 UserWarning in build log: Detected filter using positional arguments. Prefer using the 'filter' keyword argument instead The filter argument takes BaseFilter class which is an abstract class and it is implemented in FieldFilter. This class can be imported from google.cloud.firestore_v1.base_query Reference: googleapis/python-firestore#705 GoogleCloudPlatform/python-docs-samples#10407
@spbnick Thank you. I add more information for the change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you, Hai!
Fix #431