Skip to content
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

Resolve audit result values #458

Closed
paulirish opened this issue Jun 22, 2016 · 7 comments · Fixed by #487
Closed

Resolve audit result values #458

paulirish opened this issue Jun 22, 2016 · 7 comments · Fixed by #487

Comments

@paulirish
Copy link
Member

Currently...

  • result.value - most of the time is actually === a score
  • result.rawValue - many times its a string of "1232.32ms" .. not exactly "raw"

Proposal

  • result.score
  • result.rawValue - which is either a number or boolean, never a string
  • result.displayValue - which is a string
@brendankenny
Copy link
Member

LGTM

1 similar comment
@paullewis
Copy link
Contributor

LGTM

@wardpeet
Copy link
Collaborator

wardpeet commented Jun 22, 2016

I'm working on this ticket as we speak but what should happen with rawValue when it's a color? should it just say true?
What with score false? Should it convert to 0 and have a rawValue of false and displayValue of ''?

Is the only required value a score? (like it's now with value)

--edit

Perhaps it's best to convert score to a number (false will be 0, true will be 100) or maybe this should only be filled in when you have a score.
rawValue will be always filled in (it's the same as the previous value but than always raw) and displayValue will convert rawValue to a string with perhaps extra data.

Sounds good?

@paulirish
Copy link
Member Author

I'm working on this ticket as we speak but what should happen with rawValue when it's a color? should it just say true?

Theme-color? TBH it's kinda superfluous that we report it. The rawValue there should be boolean. Can move the color into extendedInfo

What with score false? Should it convert to 0 and have a rawValue of false and displayValue of ''?

shrug...

@wardpeet
Copy link
Collaborator

I'll just prepare a pr and i'll just wait for feedback :p

@wardpeet
Copy link
Collaborator

Fixing some bugs, almost done so will have a pr ready today or tomorrow

@paulirish
Copy link
Member Author

awesome! thanks for the update man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants