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

core(category): add manualDescription #5100

Merged
merged 3 commits into from
May 3, 2018
Merged

Conversation

patrickhulce
Copy link
Collaborator

@patrickhulce patrickhulce commented May 3, 2018

makes the change for manualDescription instead of a manual group

ref #5008 #4333

@paulirish paulirish mentioned this pull request May 3, 2018
82 tasks
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.

should we add a check to validateCategories that any manual audit has a weight of 0?

@@ -62,7 +62,8 @@ function validateCategories(categories, audits, groups) {
throw new Error(`could not find ${audit.id} audit for category ${categoryId}`);
}

if (categoryId === 'accessibility' && !audit.group) {
const auditImpl = audits.find(a => a.implementation.meta.name === audit.id).implementation;
Copy link
Member

Choose a reason for hiding this comment

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

maybe get rid of auditIds above and use auditImpl for both this and the check of audit.id above?

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

@patrickhulce
Copy link
Collaborator Author

@brendankenny feedback addressed!

@patrickhulce
Copy link
Collaborator Author

should we add a check to validateCategories that any manual audit has a weight of 0?

ya mind if I do that after #5105 ? conflicting junk

@brendankenny
Copy link
Member

brendankenny commented May 3, 2018

ya mind if I do that after #5105 ? conflicting junk

sure, but maybe add a TODO? or something to remember it

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

@patrickhulce patrickhulce merged commit a3737fe into master May 3, 2018
@patrickhulce patrickhulce deleted the manual_description branch May 3, 2018 21:46
kdzwinel pushed a commit to kdzwinel/lighthouse that referenced this pull request Aug 16, 2018
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.

3 participants