-
Notifications
You must be signed in to change notification settings - Fork 1.6k
#514: rip out Connection cruft
#550
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
#514: rip out Connection cruft
#550
Conversation
|
Does this depend on #548? I have yet to view the code, but is
meant to be a temporary replacement for the interaction of I was imagining a world in which |
|
Yes, based on #548. To accomplish what you are asking, we would need to have |
|
That doesn't seem like too big an issue. Are you opposed to that? |
|
It means moving the logic we currently have in |
|
Rebased after merging #548. |
|
Changes Unknown when pulling c449af6 on tseaver:514-rip_out_connection_cruft into * on GoogleCloudPlatform:master*. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
OK I did a commit by commit review and even managed to put my comments on the PR instead of the commits (pats self on back). This mostly looks good except I think you should refactor |
- Folds in changes from #404 / #512 to avoid reintroducing #403. See: https://github.com/GoogleCloudPlatform/gcloud-python/pull/550/files#r22982145.
Avoid having callers depend on private singleton, _BATCHES.
Returns top of stack IFF it is a transaction, or None.
|
@dhermes the following two commits do as you recommend:
|
|
LGTM w00t! (Sorry I am reviewing from phone.) |
#514: rip out `Connection` cruft
Source-Link: https://togithub.com/googleapis/synthtool/commit/0ddbff8012e47cde4462fe3f9feab01fbc4cdfd6 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:bced5ca77c4dda0fd2f5d845d4035fc3c5d3d6b81f245246a36aee114970082b
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Source-Link: googleapis/synthtool@352b9d4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3e3800bb100af5d7f9e810d48212b37812c1856d20ffeafb99ebe66461b61fc7 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* chore(deps): update all dependencies * fix(deps): allow pyarrow < 10 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update dependency google-cloud-bigquery==3.3.1 Co-authored-by: Anthonios Partheniou <[email protected]> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Source-Link: googleapis/synthtool@06e8279 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:b3500c053313dc34e07b1632ba9e4e589f4f77036a7cf39e1fe8906811ae0fce
Otherwise this file is excluded from generation. Partially addresses #437
* chore: update templated files * remove obsolete replacements in owlbot.py * update replacements in owlbot.py * 🦉 Updates from OwlBot post-processor 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: Kevin Zheng <[email protected]>
* build(python): use release-publish app for notifying GitHub of release status * fix: re-add pypi password Source-Author: Bu Sun Kim <[email protected]> Source-Date: Wed Sep 16 08:46:42 2020 -0600 Source-Repo: googleapis/synthtool Source-Sha: 257fda18168bedb76985024bd198ed1725485488 Source-Link: googleapis/synthtool@257fda1 * build(python): add secret manager in kokoro Source-Author: Bu Sun Kim <[email protected]> Source-Date: Wed Sep 16 10:24:40 2020 -0600 Source-Repo: googleapis/synthtool Source-Sha: dba48bb9bc6959c232bec9150ac6313b608fe7bd Source-Link: googleapis/synthtool@dba48bb
For hygeine:
batch._BATCHES.topbehindbatch.Batch.current()classmethod.Per #514:
Connection.delete_entities()Connection.mutationConnection.transactionConnection.lookupandConnection.run_querydepend on transactionon top of the
_BATCHESstack.