Skip to content

Conversation

@NRHelmi
Copy link
Contributor

@NRHelmi NRHelmi commented Sep 26, 2022

This PR adds support to cancel_transaction functionality
Closes #68

@NRHelmi NRHelmi requested review from NHDaly and afgambin September 26, 2022 13:48
Copy link

@afgambin afgambin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Thanks!

Comment on lines +651 to +654
function cancel_transaction(ctx::Context, id::AbstractString; kw...)
path = PATH_ASYNC_TRANSACTIONS * "/$id/cancel"
return _post(ctx, path)
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a unit test for this? Probably it doesn't need to be an integration test; just a unit test that confirms that the correct path is hit with a POST request?

Thank you!

Copy link
Member

@NHDaly NHDaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than request for tests

@NRHelmi NRHelmi merged commit a725151 into main Oct 4, 2022
@NRHelmi NRHelmi deleted the hnr-cancel-txn branch October 4, 2022 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transaction Cancelation missing

3 participants