Skip to content

feat: support per-site country code ignore list in CDN logs report#2157

Draft
akshaymagapu wants to merge 1 commit intomainfrom
feat/country-code-ignore-list
Draft

feat: support per-site country code ignore list in CDN logs report#2157
akshaymagapu wants to merge 1 commit intomainfrom
feat/country-code-ignore-list

Conversation

@akshaymagapu
Copy link
Contributor

@akshaymagapu akshaymagapu commented Mar 18, 2026

Summary

  • Update validateCountryCode to accept optional per-site ignore list, merged with global ignore list ['TV', 'ST']
  • Thread ignore list from site.getConfig().getLlmoCountryCodeIgnoreList() through both agentic and referral processData()
  • Country codes in the ignore list fall back to GLOBAL

Context

Some sites have URL path segments like /ps/ that match country code patterns but don't represent actual countries or related to given site. This change reads a per-site ignore list from config and applies it during report generation.

Depends on

  • adobe/spacecat-shared: getLlmoCountryCodeIgnoreList() config accessor

Test plan

  • Unit tests for validateCountryCode with per-site ignore list
  • Unit tests for agentic and referral sheet configs with ignore list
  • CI passes

🤖 Generated with Claude Code

Update validateCountryCode to accept an optional per-site ignore list that
merges with the global ignore list ['TV', 'ST']. Country codes in the
ignore list are treated as GLOBAL, preventing false positives where URL
path segments (e.g., '/ps/') don't represent actual country codes.

- Update validateCountryCode(code, siteIgnoreList) signature
- Thread ignore list from site config through agentic and referral processData
- Add tests for per-site ignore list behavior

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@akshaymagapu akshaymagapu force-pushed the feat/country-code-ignore-list branch from e954152 to 39e1285 Compare March 18, 2026 10:37
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.

2 participants