-
Notifications
You must be signed in to change notification settings - Fork 14
Tokowaka - Added suport for regex #1218
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
Conversation
|
This PR will trigger no release when merged. |
…e/spacecat-shared into feat/tokowaka-regex-support
| ); | ||
|
|
||
| if (patches.length === 0) { | ||
| // For prerender opportunities, allow configs with no patches (prerender-only) |
There was a problem hiding this comment.
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)) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
info log.
|
🎉 This PR is included in version @adobe/spacecat-shared-tokowaka-client-v1.3.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version @adobe/spacecat-shared-utils-v1.82.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fix: adobe/spacecat-audit-worker#1746
Related PR:
adobe/spacecat-api-service#1623
Please ensure your pull request adheres to the following guidelines:
Related Issues
Thanks for contributing!