Skip to content

Moving Transaction tombstone behavior onto Batch.#1367

Merged
dhermes merged 2 commits intogoogleapis:masterfrom
dhermes:fix-1366
Jan 14, 2016
Merged

Moving Transaction tombstone behavior onto Batch.#1367
dhermes merged 2 commits intogoogleapis:masterfrom
dhermes:fix-1366

Conversation

@dhermes
Copy link
Contributor

@dhermes dhermes commented Jan 8, 2016

This is so that commit request protos are not re-used, so we can re-use and modify them when passed into Connection.commit.

Fixes #1366.


@tseaver The tests still pass (as well as coverage) dude to transitive use of the newly moved code. What sort of tests would you like to see added?

@dhermes dhermes added the api: datastore Issues related to the Datastore API. label Jan 8, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 8, 2016
@tseaver
Copy link
Contributor

tseaver commented Jan 14, 2016

We probably need to add explicit tests in test_batch for the new Batch.commit and Batch.rollback methods (even though we have coverage via test_transaction.

@dhermes
Copy link
Contributor Author

dhermes commented Jan 14, 2016

👍 On it.

This is so that commit request protos are not re-used,
so we can re-use and modify them when passed into
`Connection.commit`.
@dhermes
Copy link
Contributor Author

dhermes commented Jan 14, 2016

@tseaver PTAL

@tseaver
Copy link
Contributor

tseaver commented Jan 14, 2016

LGTM

dhermes added a commit that referenced this pull request Jan 14, 2016
Moving Transaction tombstone behavior onto Batch.
@dhermes dhermes merged commit 592c8e8 into googleapis:master Jan 14, 2016
@dhermes dhermes deleted the fix-1366 branch January 14, 2016 21:34
parthea pushed a commit that referenced this pull request Nov 26, 2025
This reverts commit 9f52f665247ada59278ffddaaef3ada9e419154c.
parthea pushed a commit that referenced this pull request Mar 9, 2026
…affolding (#1367)

* chore(x-goog-spanner-request-id): plug in functionality after test scaffolding

This change chops down the load of the large changes for
x-goog-spanner-request-id. It depends on PR #1366 and should
only be merged after that PR.

Updates #1261
Requires PR #1366

* Include batch*

* Address review feedback

* chore: fix formatting

---------

Co-authored-by: Knut Olav Løite <koloite@gmail.com>
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.

3 participants