Skip to content

Conversation

@adamraine
Copy link
Contributor

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
!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
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.

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