-
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
Remove rawValue from Audit.Result #6199
Comments
The big change here is asking people to pull metric values from I'm cool with that, though. |
I might've misunderstood this issue a little bit, but on a cursory look, |
|
I guess for |
Started to work on this with branch. Currently I have removed rawValue from |
Since (I believe) this isn't blocking the proto work, I think we should do this right and eliminate the This might be one of those cases we all need to get in a single (virtual) room and make sure every useful |
@brendankenny 👍 I agree. The current branch works but obviously isn't clean and will rawValue will definitely rot forever. I will continue to make the changes to |
Since we delete Are we leaning towards deleting EDIT: actually, there's only a clean transition from |
via LR, the
|
@hoten maybe a regex on title
The idea was to remove rawValue in favor of a special metrics details timing, but I'm not sure we got around to making that a reality |
I didn't mean to suggest it's impossible, just that there's not a generic way to check if a particular audit passed. Some other examples show that
|
Gotcha my bad :) yeah we will likely have to finally flesh out details to fully replace |
I perhaps should not have kicked this thread, as it seems we let this idea die =P I would like that we keep rawValues in the audit results. LR removes them by default, but I can easily add a flag that prevents that behavior (and enable it just for running the smoke tests). If some longer term endeavor begins to kill rawValue, I think that'd be a detriment to the smoke tests. |
we definitely need to kill We just punted on it because it wasn't anyone's job and we wanted to get 4.0 out the door. |
Kicking this again for #7752. I think our needs are something like this:
In order to accomplish those in both LH and LR, I think we should introduce a top-level variable instead of rawValue, something like Note: since we never added |
I think this is definitely doable for v5. And we don't really know the timing for v6 (it could be as late as May 2020 depending on whatever), so if we want to do it now's the time. We will break more than a few folks digging into the LHR for actual metric values, but I think it's worth it. The general plan we came up with was:
The change should be fairly trivial since for the most part where |
Hey @brendankenny , this is a fairly breaking change for us. We were using To be clear, if we are writing custom audits that are boolean in nature, what property should we return on the audit to indicate this? And how should we be testing existing (lighthouse core/default) audits for their boolean status? For example, it looks like here
items or not, yeah? Which is the result of the "is this website on https" (?) Is the score always between 0 and 1?
|
Correct,
Correct, |
In addition to what @patrickhulce said,
Yes, sorry about that. We tried to call it out prominently in the release notes, but maybe a migration guide would have been a good idea. As I outlined in #8421 (comment), We could make a similar thing for the boolean-ish audits, but as @patrickhulce notes, (it was also never inherently clear what most of those audits should be returning for a 'rawValue' in the first place. e.g. for |
@patrickhulce @brendankenny awesome guys, thanks for your comments as always! |
What is the current behavior?
rawValue
is still in each Audit in the LHR, but theMetrics
audit contains allrawValue
information and sorawValue
is redundant.The text was updated successfully, but these errors were encountered: