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(fr): filter configs by gather mode #11941

Merged
merged 3 commits into from
Jan 13, 2021
Merged

core(fr): filter configs by gather mode #11941

merged 3 commits into from
Jan 13, 2021

Conversation

patrickhulce
Copy link
Collaborator

Summary
This completes the core snapshot mode support for Fraggle Rock (further gatherer support pending) by filtering out any audits from a config that don't support the gatherer mode being run. This eliminates the huge mess of errors you'd see in the report when previously running in snapshot mode.

I decided against a property in settings because our intention is to always have the entrypoint be different for every entry mode (so there is no benefit to duplicate specification in the config) and the same config is shared between many modes which created potential for confusion if the gatherMode value was set to a value that didn't match audits/gatherers defined in the config. Contrast this with onlyAudits/onlyCategories which has no impact on the entrypoint.

Related Issues/PRs
ref #11313

@patrickhulce patrickhulce requested a review from a team as a code owner January 11, 2021 17:26
@patrickhulce patrickhulce requested review from adamraine and removed request for a team January 11, 2021 17:26
@google-cla google-cla bot added the cla: yes label Jan 11, 2021
Copy link
Member

@adamraine adamraine left a comment

Choose a reason for hiding this comment

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

LGTM

'use strict';

/**
*
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a jsdoc description to these functions. It isn't obvious how each list is being filtered by the name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure thing 👍

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.

3 participants