Skip to content

feat: add scoringMode to AuditResult#1967

Merged
ebidel merged 3 commits intomasterfrom
score_precision
Apr 5, 2017
Merged

feat: add scoringMode to AuditResult#1967
ebidel merged 3 commits intomasterfrom
score_precision

Conversation

@patrickhulce
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Feels like this should also add documentation somewhere, but we don't really do that for the other meta properties either

@@ -19,6 +19,7 @@ interface AuditFullResult {
displayValue: string;
debugString?: string;
score: boolean|number;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add it to the closure typedef too

@brendankenny
Copy link
Copy Markdown
Contributor

how do you feel about scoreType?

@patrickhulce patrickhulce changed the title feat: add scorePrecision to AuditResult feat: add scoringMode to AuditResult Apr 5, 2017
'Network transfer size [costs users real dollars](https://whatdoesmysitecost.com/) ' +
'and is [highly correlated](http://httparchive.org/interesting.php#onLoad) with long load times. ' +
'Try to find ways to reduce the size of required files.',
scoringMode: 'numeric',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use an enum? scoringMode: Audit.ScoringModes.Numeric

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ebidel
Copy link
Copy Markdown
Contributor

ebidel commented Apr 5, 2017

Double LGTM

* @return {{Numeric: string, Binary: string}}
*/
static get ScoringModes() {
return {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be NUMERIC and BINARY or numeric and binary IMO. also SCORING_MODES?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ebidel
Copy link
Copy Markdown
Contributor

ebidel commented Apr 5, 2017

Triple LGTM

@paulirish
Copy link
Copy Markdown
Member

lol u guys and the yelling. lgtm

@ebidel ebidel merged commit 17046b3 into master Apr 5, 2017
@ebidel ebidel deleted the score_precision branch April 5, 2017 22:24
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 this pull request may close these issues.

4 participants