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

fix: waitUntil and transaction type #1326

Merged
merged 2 commits into from
May 4, 2022
Merged

fix: waitUntil and transaction type #1326

merged 2 commits into from
May 4, 2022

Conversation

@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2022

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

@HolgerJeromin
Copy link

Thanks for helping.
You manipulated a generated file.
The correct place would be overridingTypes.jsonc

@susiwen8
Copy link
Contributor Author

susiwen8 commented May 4, 2022

Thanks for helping. You manipulated a generated file. The correct place would be overridingTypes.jsonc

Thanks!

@saschanaz
Copy link
Contributor

There is a reason that ExtendableEvent.waitUntil accepts any: It basically accept any object and wraps it with Promise.resolve() if it's not a promise.

But strictly requiring a promise seems to make a sense in this case.

@susiwen8
Copy link
Contributor Author

susiwen8 commented May 4, 2022

There is a reason that ExtendableEvent.waitUntil accepts any: It basically accept any object and wraps it with Promise.resolve() if it's not a promise.

But strictly requiring a promise seems to make a sense in this case.

Yes, I saw you commit 3 years ago.
I read doc in MDN. Telling that waitUntil accept a promise.

@saschanaz
Copy link
Contributor

Whenever MDN says a promise as a parameter it means anything. I'll file a bug there.

@susiwen8
Copy link
Contributor Author

susiwen8 commented May 4, 2022

So I should change waitUntil back?

@saschanaz
Copy link
Contributor

saschanaz commented May 4, 2022

You can keep it, but you need to follow what @HolgerJeromin said to fix the test failure: #1326 (comment)

@susiwen8
Copy link
Contributor Author

susiwen8 commented May 4, 2022

@saschanaz Tests passed. Please take a look.

@saschanaz
Copy link
Contributor

saschanaz commented May 4, 2022

It's still running 😉 (Please don't ping for test results, I'll look when I can.)

@saschanaz
Copy link
Contributor

saschanaz commented May 4, 2022

lgtm

(Checking if this repo supports automerge)

(Oops, it finished right after this comment.)

@github-actions github-actions bot merged commit 837b023 into microsoft:main May 4, 2022
@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2022

Merging because @saschanaz is a code-owner of all the changes - thanks!

@susiwen8 susiwen8 deleted the lib branch May 4, 2022 17:01
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.

missing: transaction durability in indexeddb webworker: waitUntil should require a Promise
3 participants