Remove rawValue from Audit.Result
See original GitHub issueWhat is the current behavior?
rawValue
is still in each Audit in the LHR, but the Metrics
audit contains all rawValue
information and so rawValue
is redundant.
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (11 by maintainers)
Top Results From Across the Web
Swift remove .rawValue from enums - Stack Overflow
I would love to know if it would be possible to remove the .rawValue from all of the enum calls. Thanks for your...
Read more >Configure audit data for a site collection - Microsoft Support
Configure audit log report trimming , and then click Site settings. If you don't see Site settings, click Site information and then click...
Read more >Audit Findings and Effective Responses
– Discuss the elements of the findings and how auditors use their judgement to classify and report findings. – Develop management responses to...
Read more >Modifications to the Opinion in the Independent Auditor's Report
The auditor is unable to obtain sufficient appropriate audit ev- idence to conclude that the financial statements as a whole are free from...
Read more >Communicating Internal Audit Findings: Best Practices for ...
The goal of effective reporting internal audit results is to help ensure stakeholders' understanding of the issues, the risk and impact to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since (I believe) this isn’t blocking the proto work, I think we should do this right and eliminate the
rawValue
from the product as well. Otherwise it will live (and rot) forever for no benefit but being able to ignore it today.This might be one of those cases we all need to get in a single (virtual) room and make sure every useful
rawValue
has a reasonabledetails
that handles itIn 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 https://github.com/GoogleChrome/lighthouse/pull/8421#issuecomment-484790725,
rawValue
was pretty much historical accumulation and its ambiguity was making each of its possible use cases less useful. In order to have raw metric values in the audit results and to keep the property from becoming unfocused over time again we narrowed the concept down to the more explicitnumericValue
.We could make a similar thing for the boolean-ish audits, but as @patrickhulce notes,
scoreDisplayMode: 'binary'
and thescore
already handle this case, so it’s probably not worth adding a redundant property.(it was also never inherently clear what most of those audits should be returning for a ‘rawValue’ in the first place. e.g. for
is-on-https
, shouldrawValue
have been the number of requests not onhttps
or just a boolean state because (as browsers treat a page load) either all requests were secure or they weren’t? Both possible values are useful. Instead we have explicit places for both of those numbers: boolean goes to the 0/1 score, the number of insecure requests indetails.items
).