Skip to content

core(fr): add base gatherer class#11917

Merged
patrickhulce merged 2 commits into
masterfrom
fr_gatherer_meta
Jan 6, 2021
Merged

core(fr): add base gatherer class#11917
patrickhulce merged 2 commits into
masterfrom
fr_gatherer_meta

Conversation

@patrickhulce

Copy link
Copy Markdown
Collaborator

Summary
Adds the base Fraggle Rock gatherer class that allows transition of gatherers to implement both APIs.

Why a new class instead of the augmenting the old class? Clarity. This approach allows anyone reading a gatherer file to immediately see whether it supports the new modes or not. We'll also be able to know from a type perspective that a gatherer doesn't support the new method, forcing a one-by-one examination of each gatherer as we upgrade them for FR.

Related Issues/PRs
ref #11313
Design Doc

@patrickhulce patrickhulce requested a review from a team as a code owner January 5, 2021 17:44
@patrickhulce patrickhulce requested review from adamraine and removed request for a team January 5, 2021 17:44
@google-cla google-cla Bot added the cla: yes label Jan 5, 2021

@adamraine adamraine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Comment thread lighthouse-core/test/fraggle-rock/gather/base-gatherer-test.js Outdated
Co-authored-by: Adam Raine <6752989+adamraine@users.noreply.github.com>
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