-
Notifications
You must be signed in to change notification settings - Fork 816
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
New cacheWriteDidFail lifecycle callback #1530
Comments
I think we can get this in for v6 as part of the overall lifecycle overhaul. |
Hi @jeffposnick, Thanks |
Hello @srikanthavadhanula! Thanks so much for the interest in contributing to Workbox! The portion of the codebase that's related to this issue is workbox/packages/workbox-strategies/src/StrategyHandler.ts Lines 361 to 372 in 8c49eb9
Before the workbox/packages/workbox-strategies/src/StrategyHandler.ts Lines 374 to 382 in 8c49eb9
That code iterates over The other piece of the puzzle would be to update https://github.com/GoogleChrome/workbox/blob/8c49eb93d9a11431fc981f0d297247ca9484b003/packages/workbox-core/src/types.ts to include information about the new callback type and parameters that it takes. ...and then the other, other piece of the puzzle would be to update the test suite in https://github.com/GoogleChrome/workbox/blob/8c49eb93d9a11431fc981f0d297247ca9484b003/test/workbox-strategies/sw/test-StrategyHandler.mjs to exercise the new callback. There's obviously a lot of different pieces there, and we're happy to walk you through any of those specific sub-steps if you get stuck along the way. Given all that, let us know your level of comfort taking this on. |
Thanks @jeffposnick |
That's great—if you run into any specific problems that are blocking you, please let us know! |
If this issue has not been resolved yet I would love to help out if possible. |
@srikanthavadhanula, is this still something you'd want to take on? |
@jeffposnick if this hasn't been resolved, I'd love to help out! |
Thanks, @evanrittenhouse—it doesn't sound like @srikanthavadhanula is able to help at the moment, so we would appreciate your contribution! |
(There's information about getting set up to make contributions and run the build/test suite at https://github.com/GoogleChrome/workbox/blob/v6/CONTRIBUTING.md) |
@jeffposnick I was reading the above comment chain to try to figure out what needs to happen, but can't seem to understand - do we only need to iterate over (const callback of this.iterateCallbacks('cacheDidFail'))'? Is there a cacheDidFail callback that I need to write? Sorry - this is my first open-source contribution (saw that it's marked as a good first issue) and am a little unclear on how to start. Any guidance/help would be much appreciated. Thank you! |
Hello @evanrittenhouse—no worries. I'm starting to wonder if marking this as a "good first issue" has ended up misleading folks, given that others have also had issues implementing it. There is currently no We can also just assign someone from the core team to work on this if you're stuck—again, it's probably more involved than a lot of "good first issue"s would ideally be. |
Ahh, I see @jeffposnick. Unfortunately it is probably a little bit beyond my scope - are there any other issues I can contribute to that you're aware of? |
Hi there, Workbox is moving to a new engineering team within Google. As part of this move, we're declaring a partial bug bankruptcy to allow the new team to start fresh. We realize this isn't optimal, but realistically, this is the only way we see it working. For transparency, here're the criteria we applied:
Thanks, and we hope for your understanding! |
Library Affected:
workbox-core
Moved from #1505 (comment)
@philipwalton writes:
The text was updated successfully, but these errors were encountered: