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

feat: add scoringMode to AuditResult #1967

Merged
merged 3 commits into from
Apr 5, 2017
Merged

feat: add scoringMode to AuditResult #1967

merged 3 commits into from
Apr 5, 2017

Conversation

patrickhulce
Copy link
Collaborator

No description provided.

Copy link
Member

@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
Member

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
Member

how do you feel about scoreType?

@patrickhulce patrickhulce changed the title feat: add scorePrecision to AuditResult feat: add scoringMode to AuditResult Apr 5, 2017
@@ -45,6 +45,7 @@ class TotalByteWeight extends Audit {
'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
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
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
Contributor

ebidel commented Apr 5, 2017

Double LGTM

*/
static get ScoringModes() {
return {
Numeric: 'numeric',
Copy link
Member

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

ebidel commented Apr 5, 2017

Triple LGTM

@paulirish
Copy link
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