Skip to content

Conversation

@tkotthakota-adobe
Copy link
Contributor

@tkotthakota-adobe tkotthakota-adobe commented Nov 11, 2025

@github-actions
Copy link

This PR will trigger no release when merged.


// Fixes
/* c8 ignore start */
// Fixes - Route wrapper functions not covered as they're tested via E2E/integration tests
Copy link
Collaborator

Choose a reason for hiding this comment

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

you don't need this

}
})
.on('end', () => {
/* c8 ignore start */
Copy link
Collaborator

Choose a reason for hiding this comment

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

please avoid

Profiles are defined in the config/profiles.json file.`,
phrases: [PHRASE],
usageText: `${PHRASE} {enable/disable} {site} {auditType} for singleURL,
usageText: `${PHRASE} {enable/disable} {site} {auditType} {profileName} for singleURL,
Copy link
Collaborator

Choose a reason for hiding this comment

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

may be better to document all option here, so that users will be aware of what's possible

let auditTypes;
if (singleAuditType.toLowerCase() === 'all') {
const profileName = profileNameInput ? profileNameInput.toLowerCase() : 'demo';
/* c8 ignore start */
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should cover these lines

);
const alreadyEnabled = profileAuditTypes.length - auditTypes.length;
if (alreadyEnabled > 0) {
await say(`:information_source: Enabling ${auditTypes.length} disabled audits from profile "${profileName}" (${alreadyEnabled} already enabled): ${auditTypes.join(', ')}`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

avoid writing disabled in the slack message


if (isEnableAudit) {
// Filter to only audits that are currently disabled
auditTypes = profileAuditTypes.filter(
Copy link
Collaborator

Choose a reason for hiding this comment

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

rename to disabledAudits

@tkotthakota-adobe tkotthakota-adobe changed the title feat: add enable/disable all audits feature feat: add disable all audits feature Dec 1, 2025
@tkotthakota-adobe
Copy link
Contributor Author

Opening fresh PR as we want to support only disable all audits as per @rpapani

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.

3 participants