Skip to content
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

Core changes for changing Execute Capability API to sync #14317

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

ettec
Copy link
Collaborator

@ettec ettec commented Sep 3, 2024

Change the Execute Capability API from Async to sync. https://smartcontract-it.atlassian.net/browse/CAPPL-27

As its used right now, in all places, callers of the API expect one result and block on the channel to wait for that single result, i.e.they are effectively sync calls. Moving to a sync API will improve the capability developer experience and protect against bugs where the capability developer sends more that one result or forgets to close the channel (for example this would break current remote target implementation). This does not preclude adding an additional Async capability type in future should the need arise.

Requires:

@ettec ettec force-pushed the callback-capability-api-spike branch 5 times, most recently from 9fc444a to 7ee01e0 Compare September 5, 2024 15:09
@ettec ettec marked this pull request as ready for review September 5, 2024 15:10
@ettec ettec requested review from a team as code owners September 5, 2024 15:10
@ettec ettec requested review from EasterTheBunny, DeividasK and cedric-cordenier and removed request for a team September 5, 2024 15:10
@ettec ettec changed the title Spike to assess impact and desirability of Capability API change Core changes for changing Execute Capability API to sync Sep 5, 2024
@jmank88
Copy link
Contributor

jmank88 commented Sep 5, 2024

If you format your PR links as list items, then we can see their status:

Requires:

@ettec ettec force-pushed the callback-capability-api-spike branch 2 times, most recently from f4d630a to b71c775 Compare September 6, 2024 08:58
@ettec ettec force-pushed the callback-capability-api-spike branch 2 times, most recently from 082da7c to 81d88a6 Compare September 6, 2024 13:25
@ettec ettec force-pushed the callback-capability-api-spike branch from 199aaae to d0c511c Compare September 6, 2024 13:27
@ettec ettec added this pull request to the merge queue Sep 6, 2024
@lukaszcl lukaszcl removed this pull request from the merge queue due to a manual request Sep 6, 2024
@lukaszcl lukaszcl added this pull request to the merge queue Sep 6, 2024
Merged via the queue into develop with commit 72f4cc8 Sep 6, 2024
74 of 76 checks passed
@lukaszcl lukaszcl deleted the callback-capability-api-spike branch September 6, 2024 15:19
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.

4 participants