Title: Mismatch of transaction IDs in 'g.datastore.connection.Connecction.rollback_transaction()' · Issue #129 · googleapis/google-cloud-python · GitHub
Open Graph Title: Mismatch of transaction IDs in 'g.datastore.connection.Connecction.rollback_transaction()' · Issue #129 · googleapis/google-cloud-python
X Title: Mismatch of transaction IDs in 'g.datastore.connection.Connecction.rollback_transaction()' · Issue #129 · googleapis/google-cloud-python
Description: The method first checks that a transaction exists for the connection, and that it has a truthy ID[1], but then does not use that ID when setting up the API request: instead, it uses a passed-in ID[2]. This is not the same behavior as in ...
Open Graph Description: The method first checks that a transaction exists for the connection, and that it has a truthy ID[1], but then does not use that ID when setting up the API request: instead, it uses a passed-in ID[...
X Description: The method first checks that a transaction exists for the connection, and that it has a truthy ID[1], but then does not use that ID when setting up the API request: instead, it uses a passed-in ID[...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/129
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mismatch of transaction IDs in 'g.datastore.connection.Connecction.rollback_transaction()'","articleBody":"The method first checks that a transaction exists for the connection, and that it has a truthy ID[1], but then does not use that ID when setting up the API request: instead, it uses a passed-in ID[2]. This is not the same behavior as in 'g.datastore.connection.Connecction.commit()', where the ID is used from the connection's transaction (if present)[3].\n\nIs there a usecase for using a connection to rollback any transaction ID other than the one bound to the connection?\n\n[1] https://github.com/GoogleCloudPlatform/gcloud-python/blob/master/gcloud/datastore/connection.py#L176\n\n[2] https://github.com/GoogleCloudPlatform/gcloud-python/blob/master/gcloud/datastore/connection.py#L180\n\n[3] https://github.com/GoogleCloudPlatform/gcloud-python/blob/master/gcloud/datastore/connection.py#L300\n","author":{"url":"https://github.com/tseaver","@type":"Person","name":"tseaver"},"datePublished":"2014-09-02T20:57:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/129/google-cloud-python/issues/129"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e65100d4-8cb9-6e8f-2a8b-d8744c2489e8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D39A:23D6A2:D0BFC2:12D2BE5:6A4E4902 |
| html-safe-nonce | 1a2e270815278df470f14ab0c0de36f9f99f3d0d95b273fb605c755a6512f02c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzlBOjIzRDZBMjpEMEJGQzI6MTJEMkJFNTo2QTRFNDkwMiIsInZpc2l0b3JfaWQiOiI1MTA0NTE5NjgzMzM3MjQyODgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fe574ff0ba7444572a85135bd8d9f7d503aa86af50b91181b218fd7f794a8adb |
| hovercard-subject-tag | issue:41753954 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/129/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ba9a759a1757692bbf2e5b31b9299992716a2c397e28ed0981ce5a8d2a8c212c/googleapis/google-cloud-python/issues/129 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ba9a759a1757692bbf2e5b31b9299992716a2c397e28ed0981ce5a8d2a8c212c/googleapis/google-cloud-python/issues/129 |
| og:image:alt | The method first checks that a transaction exists for the connection, and that it has a truthy ID[1], but then does not use that ID when setting up the API request: instead, it uses a passed-in ID[... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tseaver |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e8506f6d0538364886e3f0153c154c410965e70d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width