Skip to content

feat(config): add excludedPathPrefixes support to handlers config (LLMO-6132) - #1817

Open
dhavkuma wants to merge 1 commit into
mainfrom
feat/LLMO-6132-excluded-path-prefixes-config
Open

feat(config): add excludedPathPrefixes support to handlers config (LLMO-6132)#1817
dhavkuma wants to merge 1 commit into
mainfrom
feat/LLMO-6132-excluded-path-prefixes-config

Conversation

@dhavkuma

Copy link
Copy Markdown
Contributor

Summary

  • Adds excludedPathPrefixes: Joi.array().items(Joi.string()) to the handlers Joi schema
  • Adds getExcludedPathPrefixes(type) accessor
  • Adds updateExcludedPathPrefixes(type, prefixes) setter

Allows a site to configure path prefixes excluded from audit scope (e.g. PwC GLSC excluding /jp/ja for PwC Japan). Consumed by spacecat-audit-worker (skips URL generation) and spacecat-api-service (hides existing suggestions).

Jira: LLMO-6132

Test plan

  • 2675 unit tests pass
  • getExcludedPathPrefixes / updateExcludedPathPrefixes work correctly
  • Coverage: 100% lines/statements, ≥97% branches

🤖 Generated with Claude Code

Add Joi schema field, getter, and setter for excludedPathPrefixes
in the site handler config. This allows sites to specify path prefixes
to exclude from audit scope, solving the subpath sibling site overlap
issue (LLMO-6132).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

This PR will trigger a minor release when merged.

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.

1 participant