-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
report(pwa): move service-worker to the pwa-optimized group #11798
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a specific thread in #11745 that prompted this change? :)
My big question right now is why keep this audit in the PWA category at all if it's not part of installability and not shown anywhere?
@@ -424,6 +426,9 @@ const defaultConfig = { | |||
'best-practices-general': { | |||
title: str_(UIStrings.bestPracticesGeneralGroupTitle), | |||
}, | |||
'hidden': { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Hey @patrickhulce! :)
Connor, Brendan, Paul and I talked about this offline !
The service worker audit exposes a useful script and scope url for HTTP archive, so we determined that it would be best to keep it and just hide it. I don't believe there was much discussion about it necessarily being in the PWA category, though |
Ah OK, if this was already an agreed upon path I'll let someone involved review then :) @paulirish do you want to wrap it up since you've already chimed in? It feels a little weird to have this be handled differently from the same hidden situation in performance where group is omitted to signal non-visibility, but I suppose the argument was that it makes more sense to use this hidden group for those as well eventually? |
yeah a conversation i had with adriana that i then added connor and brendan into. i shoulda added to speakeasy.my bad.
it's because of the debugdata on (oops i just see that adriana already said all this.)
yup, exactly! we'll add 'hidden' to perf, yes. nice and explicitly hidden instead of relying on the "// intentionally left out of metrics group so they won't be displayed" comments. ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this lgtm!
i think you need one more tweak:
diff --git a/lighthouse-viewer/test/viewer-test-pptr.js b/lighthouse-viewer/test/viewer-test-pptr.js
index 45c99f57e..67e32dd22 100644
--- a/lighthouse-viewer/test/viewer-test-pptr.js
+++ b/lighthouse-viewer/test/viewer-test-pptr.js
@@ -107,7 +107,7 @@ describe('Lighthouse Viewer', () => {
if (category === 'performance') {
expected = getAuditsOfCategory(category).filter(a => !!a.group);
}
- expected = expected.map(audit => audit.id);
+ expected = expected.filter(a => a.group !== 'hidden').map(a => a.id);
const elementIds = await getAuditElementsIds({category, selector: selectors.audits});
assert.deepStrictEqual(
then it should be good
nvm because of the ⬇️ ....
good to raise this yeah......... fwiw we do have some valuable I don't know if any of these checks came from user-need, but it's definitely the case that they'd help if things are broken sooooo yeah........... i think you just convinced me that we should keep service-worker visible... mostly so these explanations have visibility. (and i guess a doublecheck if installabilityErrors gives unexpected results). if you two agree.. then I'd propose we walk back the hidden group changes and just move sw audit to PWA Optimized and leave the results as is. (urls still only in debugdata). to adriana's point.. it feels a tiny bit out of place to my brain, but i can imagine a developer looking at the category wouldn't mind at all. wdyt? |
This sounds great to me 👍 |
@paulirish Good points, I do like the idea of just moving it. I'm for the idea of making this info visible. Would we still want to depend on the installable checks to define the user's installability score? Aka have the sw audit's weight be 0? |
I would say, yes, but that should be handled by the fact it's not in the installability group anymore IIRC 🤞
I think having some weight in score could still work when it's in PWA Optimized group. I don't personally think it matters very much either way though since we never show the PWA score to the user. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one small nit and it's good
thanks for rolling with the changes on this one!
Follow up to #11745
Create a hidden category renderer group for the service worker audit,remove the is-on-https section from installable category and move service-worker to pwa-optimized group