question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove rawValue from Audit.Result

See original GitHub issue

What 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:closed
  • Created 5 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
brendankennycommented, Oct 10, 2018

But it is still used internally in the auditProduct objects.

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 reasonable details that handles it

1reaction
brendankennycommented, May 22, 2019

In addition to what @patrickhulce said,

Hey @brendankenny , this is a fairly breaking change for us. We were using rawValue’s boolean value to determine audit pass/fail status, or if it was a numerical value, some custom threshold to then get a true/false from it.

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 explicit numericValue.

We could make a similar thing for the boolean-ish audits, but as @patrickhulce notes, scoreDisplayMode: 'binary' and the score 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, should rawValue have been the number of requests not on https 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 in details.items).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found