-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TableClient.submitTransaction and TableTransaction do not expose OperationOptions #28624
Comments
@NitroXcellerate I think I see what you mean, the individual transaction operations have options that are specific to them, but since they are getting bundled into a single transaction request you would like a way to pass request options like an abortsignal. Seems like we could put an optional argument on submitTransaction and pass that through here instead of an empty object:
/cc @joheredi |
Hi @xirzec, any update on this issue? |
If users cancel azure-sdk-for-js/sdk/tables/data-tables/src/models.ts Lines 10 to 21 in 36a3ba2
|
Ah I see, the bundled operation is submitted to the service. Then I guess most of the individual operation options won't make sense. |
### Packages impacted by this PR `@azure/data-tables` ### Issues associated with this PR Fixes #28624 ### Describe the problem that is addressed by this PR `submitTransaction` on `TableClient` didn't allow for passing request-level options, such as an `AbortSignal` to cancel the request.
Describe the bug
Currently, there is no way to pass operation options to a Transaction. When using functions like
TableClient.upsertEntity
andTableClient.createEntity
, there is a second parameter called options in which you can pass several options such as an AbortSignal. This parameter is not exposed when using Transactions either via theTableTransaction
class or theTableClient.submitTransaction
function.To Reproduce
Steps to reproduce the behavior:
Expected behavior
TableClient.submitTransaction
should have a second parameter called options of type OperationOptions.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
https://learn.microsoft.com/en-us/javascript/api/@azure/core-http/operationoptions?view=azure-node-latest
https://learn.microsoft.com/en-us/javascript/api/%40azure/data-tables/tableclient?view=azure-node-latest#@azure-data-tables-tableclient-upsertentity
The text was updated successfully, but these errors were encountered: