Skip to content

feat: add API endpoint for per-site country code ignore list#1981

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

feat: add API endpoint for per-site country code ignore list#1981
akshaymagapu wants to merge 1 commit intomainfrom
feat/country-code-ignore-list

Conversation

@akshaymagapu
Copy link
Contributor

Summary

  • Add PATCH /sites/:siteId/llmo/country-code-ignore-list endpoint
  • LLMO admin-only access, follows same pattern as cdn-logs-filter and cdn-logs-bucket-config
  • Request body: { "countryCodeIgnoreList": ["PS", "AD"] }

Context

Allows LLMO administrators to configure per-site country codes that should be ignored in CDN logs reports, falling back to GLOBAL.

Depends on

  • adobe/spacecat-shared: updateLlmoCountryCodeIgnoreList() config method

Test plan

  • Controller tests (success, bad request, error, null fallback, 403, 404)
  • Route tests (handler mapping, param names)
  • CI passes

🤖 Generated with Claude Code

Add PATCH /sites/:siteId/llmo/country-code-ignore-list endpoint to allow
LLMO administrators to configure per-site country codes that should be
ignored in CDN logs reports (falling back to GLOBAL).

- Add patchLlmoCountryCodeIgnoreList controller handler
- Add route definition
- Add controller and route tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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