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

report: group perf audits by details type #13241

Merged
merged 16 commits into from
Nov 1, 2021
Merged

Conversation

adamraine
Copy link
Member

Closes #12828, allowing h2 audit in timespan mode.

No audits in the default config have group load-opportunities or diagnostics anymore. Having group unset now means the renderer will automatically choose the group based on the audit details type.

Couple more ideas:

  • If group is explicitly set to load-opportunities or diagnostics, put in specified group without looking at result details. This means the renderer could still support legacy LHRs.
  • Instead of having a hidden group, have an auto group and revert to hiding audits with no group in perf.

Ref #11313

@adamraine adamraine requested a review from a team as a code owner October 21, 2021 17:14
@adamraine adamraine requested review from connorjclark and removed request for a team October 21, 2021 17:14
@google-cla google-cla bot added the cla: yes label Oct 21, 2021
lighthouse-core/config/default-config.js Outdated Show resolved Hide resolved
lighthouse-core/config/default-config.js Show resolved Hide resolved
report/renderer/performance-category-renderer.js Outdated Show resolved Hide resolved
!Util.showAsPassed(audit.result));
const oppAudits = category.auditRefs.filter(audit =>
audit.result.details &&
audit.result.details.type === 'opportunity' &&
Copy link
Collaborator

Choose a reason for hiding this comment

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

if the logic for determining opportunity is used in many different files (I've only counted two so far in my review tho) would be worth moving to renderer util.

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.

looks great! not sure the best place for it, but it would be good to document somewhere the special perf category handling, either in render or maybe on @connorjclark's suggested classifyPerformanceAudit function

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

Successfully merging this pull request may close these issues.

Change performance group based on FR mode
4 participants