-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
#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*. |
@@ -218,44 +218,6 @@ def _get_value_from_property_pb(property_pb): | |||
return _get_value_from_value_pb(property_pb.value) | |||
|
|||
|
|||
def _set_protobuf_property(property_pb, name, value, indexed): |
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://github.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>
For hygeine:
batch._BATCHES.top
behindbatch.Batch.current()
classmethod.Per #514:
Connection.delete_entities()
Connection.mutation
Connection.transaction
Connection.lookup
andConnection.run_query
depend on transactionon top of the
_BATCHES
stack.