Skip to content

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Feb 23, 2017

Towards #2746. This approach is to slowly transition from our current approach to use the GAPIC generated surface.

It is unfortunately tangled quite a bit (partly because we may have too much mocked in the tests).

@dhermes dhermes added the api: datastore Issues related to the Datastore API. label Feb 23, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 23, 2017
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Feb 24, 2017
Towards googleapis#2746 (as is googleapis#3064). This approach is to slowly transition
from our current approach to use the GAPIC generated surface.

These unit tests weren't so bad to update. I did "editorialize"
as I went, downgrading constants to just variables, renamining
for PEP8, etc.
@tseaver
Copy link
Contributor

tseaver commented Feb 24, 2017

@dhermes so this is preparatory to adding google.cloud.datastore._gax, with its own implemenation of the API via the GAPIC client?

@lukesneeringer
Copy link
Contributor

@dhermes Is your goal to get this in with the umbrella releaase, or after?

:class:`.entity_pb2.Key` for each incomplete key
that was completed in the commit.
"""
mut_results = commit_response_pb.mutation_results

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

]
response = datastore_pb2.CommitResponse(
mutation_results=[
datastore_pb2.MutationResult(key=key) for key in keys

This comment was marked as spam.

This comment was marked as spam.

@lukesneeringer
Copy link
Contributor

Approved, but holding off on merge until the umbrella release question is answered.

@dhermes
Copy link
Contributor Author

dhermes commented Feb 24, 2017

@lukesneeringer A merge is just fine.

@tseaver google.cloud.datastore._gax already exists, but yes this is part of the transition to switch to using the GAPIC layer in google.cloud.datastore._gax.

Towards googleapis#2746. This approach is to slowly transition from our
current approach to use the GAPIC generated surface.

It is unfortunately tangled quite a bit (partly because we
may have too much mocked in the tests).
@dhermes
Copy link
Contributor Author

dhermes commented Feb 24, 2017

Passing on Travis, not done yet on CircleCI (since it doesn't yet do a restricted set of tests). Merging before CircleCI is done.

@dhermes dhermes merged commit 4d2b91d into googleapis:master Feb 24, 2017
@dhermes dhermes deleted the fix-2746-commit branch February 24, 2017 18:08
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
Towards googleapis#2746 (as is googleapis#3064). This approach is to slowly transition
from our current approach to use the GAPIC generated surface.

These unit tests weren't so bad to update. I did "editorialize"
as I went, downgrading constants to just variables, renamining
for PEP8, etc.
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
Making datastore Connection.commit() return low-level protobuf.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the Datastore API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants