| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Does this have a diffbase? |
Sorry, something went wrong.
Nope -- I rebased it before pushing. Too big? |
Sorry, something went wrong.
|
I just wasn't sure since there were 8 commits. Also, you're failing pep8 (that one runs fast, pylint is the slow one). |
Sorry, something went wrong.
|
Also ISTM a rebase won't feel very good due to the merging of #1051. |
Sorry, something went wrong.
|
I will fix it up (both the pep8 and the date stuff) and re-push. |
Sorry, something went wrong.
|
Thanks. Ping me when you push. |
Sorry, something went wrong.
|
Ugh! The pep8 fix was trivial, but working around the pylint 'too-many-branches' failures made me grind my teeth (4c14890) |
Sorry, something went wrong.
|
This thing is all ready to review? |
Sorry, something went wrong.
|
Hold off a bit -- I'm adding a system test for the "load from cloud storage" case, and it is failing. |
Sorry, something went wrong.
|
@dhermes OK, got the system test added and passing. |
Sorry, something went wrong.
Found while attempting to add a system test for the 'load from storage' case.
Users who want to avoid tripping over string literal mismatches can use class constants instead. Addresses: https://github.com/GoogleCloudPlatform/gcloud-python/pull/1056/files#r37029533
- 'Client.load_from_storage' -> 'Client.load_table_from_storage'. - 'job.LoadFromStorageJob' -> 'job.LoadTableFromStorageJob'. Addresses: https://github.com/GoogleCloudPlatform/gcloud-python/pull/1056/files#r37120652
I didn't want to eat the extra dependency. We have #1031 to track the idea, though. |
Sorry, something went wrong.
|
Why not? It's lightweight and hopefully most users already have it >>> import enum
>>>
>>> class RedBlue(enum.Enum):
... RED = 'RED'
... BLUE = 'BLUE'
...
>>>
>>> to_validate = 'RED'
>>> rb = RedBlue(to_validate)
>>> print(rb)
RedBlue.RED
>>> print(rb.value)
RED
>>>
>>> to_validate = 'GREEN'
>>> try:
... RedBlue(to_validate)
... except ValueError as exc:
... print(repr(exc))
... print('%s was not validated' % (to_validate,))
...
ValueError('GREEN is not a valid RedBlue',)
GREEN was not validated |
Sorry, something went wrong.
|
Most users are on Python2, and likely won't have it unless some other library has pushed them to add it. Again, we can clean up here (and in the other APIs) when we address #1031. |
Sorry, something went wrong.
|
LGTM. I really hope the follow-up commits can spread out some of the pain here. I was saying that most Python 2 only users would have lots of libraries installed that straddled Py2 and Py3, and hence would have a good chance that one of them used enum34. (I could've been clearer there.) |
Sorry, something went wrong.
|
@tseaver Please ping me on anything that will get rebased after this goes in. |
Sorry, something went wrong.
Fragment tests are defined by a small proto file describing an API surface with characteristics such that it is desirable to test the generated surface for correctness or to prevent regressions. As part of a fragment test, the generator is run on a fragment to create a GAPIC library for the fragment. The generated unit tests for the fragment are then executed to test the surface.
🤖 I have created a release \*beep\* \*boop\* --- ## [0.55.0](https://www.github.com/googleapis/gapic-generator-python/compare/v0.54.0...v0.55.0) (2021-11-01) ### Features * add fragment tests ([#1056](https://www.github.com/googleapis/gapic-generator-python/issues/1056)) ([9d9b33d](https://www.github.com/googleapis/gapic-generator-python/commit/9d9b33dadf587a6d0b09031edeea597d6d2eae62)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Fixes #1056. Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
* chore: update Java and Python dependencies PiperOrigin-RevId: 408420890 Source-Link: googleapis/googleapis@2921f9f Source-Link: googleapis/googleapis-gen@6598ca8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…dding interceptors support for testing (#1056) * feat: Fixing and refactoring transaction retry logic in dbapi. Also adding interceptors support for testing * Comments incorporated and changes for also storing Cursor object with the statements details added for retry * Some refactoring of transaction_helper.py and maintaining state of rows update count for batch dml in cursor * Small fix * Maintaining a map from cursor to last statement added in transaction_helper.py * Rolling back the transaction when Aborted exception is thrown from interceptor * Small change * Disabling a test for emulator run * Reformatting
| Back | FazBrowse Home | New Git URL |
Add support for jobs loading table data from CloudStorage files.