Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Making datastore Connection.commit() return low-level protobuf.#3064

Merged
dhermes merged 1 commit into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
dhermes:fix-2746-commitdhermes/google-cloud-python:fix-2746-commitCopy head branch name to clipboard
Feb 24, 2017
Merged

Making datastore Connection.commit() return low-level protobuf.#3064
dhermes merged 1 commit into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
dhermes:fix-2746-commitdhermes/google-cloud-python:fix-2746-commitCopy head branch name to clipboard

Conversation

@dhermes

@dhermes dhermes commented Feb 23, 2017

Copy link
Copy Markdown
Contributor

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

tseaver commented Feb 24, 2017

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown
Contributor

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

@dhermes

dhermes commented Feb 24, 2017

Copy link
Copy Markdown
Contributor Author

@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

dhermes commented Feb 24, 2017

Copy link
Copy Markdown
Contributor Author

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.
parthea pushed a commit that referenced this pull request Nov 24, 2025
Towards #2746 (as is #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.
parthea pushed a commit that referenced this pull request Nov 24, 2025
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.