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

Allow for further configuration of psiCollectCron #696

Merged

Conversation

jonathantredway
Copy link
Contributor

@jonathantredway jonathantredway commented Sep 24, 2021

closes #695

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

thanks @jonathantredway this is great!

projectSlug,
numberOfRuns = 5,
maxNumberOfParallelUrls = Infinity,
categories = ['performance', 'accessibility', 'best-practices', 'pwa', 'seo'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe don't default it here, so it can fallback to the default in psi-client?

docs/configuration.md Outdated Show resolved Hide resolved
docs/configuration.md Outdated Show resolved Hide resolved
@@ -19,20 +19,22 @@ class PsiRunner {

/**
* @param {string} url
* @param {{psiApiKey?: string, psiApiEndpoint?: string, psiStrategy?: 'mobile'|'desktop'}} [options]
* @param {{psiApiKey?: string, psiApiEndpoint?: string, psiStrategy?: 'mobile'|'desktop', categories?: Array<'performance' | 'accessibility' | 'best-practices' | 'pwa' | 'seo'>}} [options]
Copy link
Collaborator

Choose a reason for hiding this comment

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

these options are all redundantly prefixed with psi because the CLI collect command can also use them, I think it might be worth doing at this level for psiCategories as well :) (but in psi-client, definitely leave without prefix)

WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, sounds very reasonable to stay consistent.

Co-authored-by: Patrick Hulce <[email protected]>

Co-authored-by: Patrick Hulce <[email protected]>
@jonathantredway jonathantredway force-pushed the additional-psi-configurations branch from 8b30b64 to 8a1acbd Compare September 24, 2021 17:37
@google-cla
Copy link

google-cla bot commented Sep 24, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@jonathantredway
Copy link
Contributor Author

@patrickhulce Addressed the feedback ✅, but used the github client to auto-commit your suggestions so it looks like you'll just need to appease googlebot with a consent comment.

@patrickhulce
Copy link
Collaborator

@googlebot I consent

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

excellent work, thanks @jonathantredway !

@patrickhulce patrickhulce merged commit 0427e08 into GoogleChrome:main Sep 24, 2021
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.

Additional psi configurations
2 participants