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

VowTools when honors rejection handler #9704

Merged
merged 2 commits into from
Jul 13, 2024
Merged

Conversation

mhofman
Copy link
Member

@mhofman mhofman commented Jul 13, 2024

closes: #9703

Description

Split when into a base unwrap and a when helper which accepts fulfillment and rejection handlers

Security Considerations

None

Scaling Considerations

None

Documentation Considerations

None

Testing Considerations

Added coverage for both when and watch without handlers
Adds vow rejection test in async-flow

Upgrade Considerations

None of the usages in upgrade-16 use a handler for when, but we should incorporate this change in the upgrade-16 branch regardless and publish new NPM packages for dapps.

Copy link

cloudflare-workers-and-pages bot commented Jul 13, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 65c5a0a
Status: ✅  Deploy successful!
Preview URL: https://74f242e6.agoric-sdk.pages.dev
Branch Preview URL: https://mhofman-9703-fix-vowtools-wh.agoric-sdk.pages.dev

View logs

Copy link
Member

@erights erights left a comment

Choose a reason for hiding this comment

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

LGTM. Yes, much better, thanks!

@mhofman mhofman added the force:integration Force integration tests to run on PR label Jul 13, 2024
@mhofman mhofman linked an issue Jul 13, 2024 that may be closed by this pull request
Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

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

LGTM!

@mhofman mhofman changed the title fix(vow): when honors rejection handler VowTools when honors rejection handler Jul 13, 2024
@mhofman mhofman added the automerge:rebase Automatically rebase updates, then merge label Jul 13, 2024
@mergify mergify bot merged commit 986371e into master Jul 13, 2024
82 of 89 checks passed
@mergify mergify bot deleted the mhofman/9703-fix-vowtools-when branch July 13, 2024 02:54
mergify bot added a commit that referenced this pull request Jul 14, 2024
follow up on #9449 

## Description
#9685 unwrapped an `asVow()` to get the promise failure to propagate. This reverts that now that #9704 removed the need for it.

### Security Considerations
none

### Scaling Considerations
none

### Documentation Considerations
none

### Testing Considerations
CI

### Upgrade Considerations
not yet deployed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge force:integration Force integration tests to run on PR
Projects
None yet
3 participants