Skip to content

Conversation

@shrotia
Copy link
Contributor

@shrotia shrotia commented Dec 5, 2025

Fix: adobe/spacecat-audit-worker#1746

Related PR:
adobe/spacecat-api-service#1623

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Thanks for contributing!

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

This PR will trigger no release when merged.

);

if (patches.length === 0) {
// For prerender opportunities, allow configs with no patches (prerender-only)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should have one method in the mapper interface:
allowConfigsWithoutPatch (that can return false in base mapper).
this way we dont leak opportunity type info in main logic.

// For prerender, allow configs with no patches (prerender-only config)
const isPrerenderOnly = opportunity.getType() === 'prerender' && newConfig.patches.length === 0;

if (!isPrerenderOnly && (!newConfig.patches || newConfig.patches.length === 0)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn;t we use the mapper.allowConfigsWithoutPatch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, added in preview also

}

if (!existingConfig.patches) {
this.log.warn(`No patches found in configuration for URL: ${fullUrl}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

info log.

@shrotia shrotia merged commit 30cfc20 into main Dec 10, 2025
9 of 11 checks passed
@shrotia shrotia deleted the feat/tokowaka-regex-support branch December 10, 2025 08:17
@solaris007
Copy link
Member

🎉 This PR is included in version @adobe/spacecat-shared-tokowaka-client-v1.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@solaris007
Copy link
Member

🎉 This PR is included in version @adobe/spacecat-shared-utils-v1.82.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prerender Audit - Domain-Wide Master Suggestion

4 participants