Title: Nested `InTx()` makes inner tx apply 0 changes · Issue #2468 · coder/coder · GitHub
Open Graph Title: Nested `InTx()` makes inner tx apply 0 changes · Issue #2468 · coder/coder
X Title: Nested `InTx()` makes inner tx apply 0 changes · Issue #2468 · coder/coder
Description: Current Behavior If you nest InTx(), the inner tx does nothing. It also breaks the outer tx db.InTx(func(outer database.Store) error { return outer.InTx(func(inner database.Store) error { // inner.* will not actually do anything return n...
Open Graph Description: Current Behavior If you nest InTx(), the inner tx does nothing. It also breaks the outer tx db.InTx(func(outer database.Store) error { return outer.InTx(func(inner database.Store) error { // inner....
X Description: Current Behavior If you nest InTx(), the inner tx does nothing. It also breaks the outer tx db.InTx(func(outer database.Store) error { return outer.InTx(func(inner database.Store) error { // inner....
Opengraph URL: https://github.com/coder/coder/issues/2468
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nested `InTx()` makes inner tx apply 0 changes","articleBody":"# Current Behavior\r\n\r\nIf you nest `InTx()`, the inner tx does nothing. It also breaks the outer tx\r\n\r\n```golang\r\n\tdb.InTx(func(outer database.Store) error {\r\n\t\treturn outer.InTx(func(inner database.Store) error {\r\n // inner.* will not actually do anything\r\n\t\t\treturn nil\r\n\t\t})\r\n\t})\r\n```\r\n\r\n# Expected behavior\r\n\r\nIf you nest `InTx()`, the inner Tx should just extend/reuse the outer TX.\r\n","author":{"url":"https://github.com/Emyrk","@type":"Person","name":"Emyrk"},"datePublished":"2022-06-17T16:14:01Z","url":"https://github.com/coder/coder/issues/2468"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:d2b24b7d-f3eb-a124-71c2-0bc51c506b3d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5B8:14F601:27FBF8E:32BDE2F:6B018185 |
| html-safe-nonce | ee90b067f94336eaf5015587f199cc7dc450f61ae34e8f0cd4bfdd582914b637 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUI4OjE0RjYwMToyN0ZCRjhFOjMyQkRFMkY6NkIwMTgxODUiLCJ2aXNpdG9yX2lkIjoiMzg0MjM4ODE5NDE3NTg0NDc0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bb21fdbe83aa6cbf69a6fa89390b94cf3e528b19061136b275500c82d15ba7a7 |
| hovercard-subject-tag | issue:1275224557 |
| 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/coder/coder/2468/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8baa6dc39db557c107c83b4ce044e0095934ff7b719aad005cb0e4c7ddb192e0/coder/coder/issues/2468 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8baa6dc39db557c107c83b4ce044e0095934ff7b719aad005cb0e4c7ddb192e0/coder/coder/issues/2468 |
| og:image:alt | Current Behavior If you nest InTx(), the inner tx does nothing. It also breaks the outer tx db.InTx(func(outer database.Store) error { return outer.InTx(func(inner database.Store) error { // inner.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Emyrk |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width