-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fixes #937 - Adds HTTP method and URL to exceptions. #961
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
Fixes #937 - Adds HTTP method and URL to exceptions. #961
Conversation
|
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
Addressing comments in review and tox failures.
|
@tseaver PTAL The things left unaddressed from the last PR were as follows: From
From @dhermes: Should we have a newline somewhere in the error message if it gets too long? (I lean towards no because of line wrapping.) |
|
I'm -0 on injecting a newline (thinking e.g. about logfiles: human readability vs. parsing by machine). |
|
WDYT of |
|
I've closed #938 |
|
@tseaver Are we all good then? |
|
LGTM |
|
LGTM - sorry for letting this linger. Thanks for cleaning it up for me :( |
|
No worries @jgeewax |
Fixes #937 - Adds HTTP method and URL to exceptions.
* doc: add samples for filtering using async apis * format * suffix snippets
* feat: support query profiling * collection * fix unit tests * unit tests * vector get and stream, unit tests * aggregation get and stream, unit tests * docstring * query profile unit tests * update base classes' method signature * documentsnapshotlist unit tests * func signatures * undo client.py change * transaction.get() * lint * system test * fix shim test * fix sys test * fix sys test * system test * another system test * skip system test in emulator * stream generator unit tests * coverage * add system tests * small fixes * undo document change * add system tests * vector query system tests * format * fix system test * comments * add system tests * improve stream generator * type checking * adding stars * delete comment * remove coverage requirements for type checking part * add explain_options to StreamGenerator * yield tuple instead * raise exception when explain_metrics is absent * refactor documentsnapshotlist into queryresultslist * add comment * improve type hint * lint * move QueryResultsList to stream_generator.py * aggregation related type annotation * transaction return type hint * refactor QueryResultsList * change stream generator to return ExplainMetrics instead of yield * update aggregation query to use the new generator * update query to use the new generator * update vector query to use the new generator * lint * type annotations * fix type annotation to be python 3.9 compatible * fix type hint for python 3.8 * fix system test * add test coverage * use class method get_explain_metrics() instead of property explain_metrics * feat: add explain_metrics to async generator * async support for query * system tests for query * query profile for async vector query * vector query system test * async transaction * async transaction system test * async collection * fix system test * test coverage * test coverage * collection system test * async aggregation * lint * cover * lint * aggregation system tests * cover and fix system test * delete type ignore * improve type annotation * mypy * mypy * address comments * delete comments * address comments
@jgeewax Taking #938 over since it lingered.
@tseaver I rebased and will shortly send another commit addressing review feedback.