Skip to content

feat: LLMO-3959 changing schema to add detectCdn flag#1501

Merged
AddyKen-ghost merged 3 commits intomainfrom
llmo-3959
Apr 10, 2026
Merged

feat: LLMO-3959 changing schema to add detectCdn flag#1501
AddyKen-ghost merged 3 commits intomainfrom
llmo-3959

Conversation

@AddyKen-ghost
Copy link
Copy Markdown
Contributor

@AddyKen-ghost AddyKen-ghost commented Apr 2, 2026

Summary

Add support for persisting the auto-detected CDN provider inside config.llmo.detectedCdn on the Site model, as part of the LLMO onboarding CDN auto-detection feature (LLMO-3959).

Changes

  • Joi schema: Add detectedCdn: Joi.string().valid('aem-cs-fastly', 'other').optional() to the llmo config object
  • Config model: Add getLlmoDetectedCdn() getter (returns null when absent) and updateLlmoDetectedCdn() setter
  • Site schema: Remove the previously added top-level detectedCdn attribute — the value is now nested inside the existing config JSONB column, avoiding a database migration
  • Tests: Add 4 unit tests for the new getter/setter following the existing pattern (CdnBucketConfig, CountryCodeIgnoreList)

Three-state values

Value Meaning
'aem-cs-fastly' DNS confirmed the site uses AEM CS Fastly
'other' DNS resolved successfully but did not match AEM CS Fastly
null / absent DNS lookup failed — inconclusive

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

This PR will trigger a minor release when merged.

…onfig.llmo

Remove the top-level detectedCdn column from the Site schema (avoids DB
migration) and nest it inside config.llmo where it is validated as
Joi.string().valid('aem-cs-fastly', 'other'). Add getter/setter helpers
on the Config model.

Made-with: Cursor
…DetectedCdn

Follow existing getter/setter test pattern (CdnBucketConfig,
CountryCodeIgnoreList) with four cases: get with data, default config,
field absent, and update.

Made-with: Cursor
Comment thread packages/spacecat-shared-data-access/src/models/site/config.js
@AddyKen-ghost AddyKen-ghost merged commit 0bb4642 into main Apr 10, 2026
5 checks passed
@AddyKen-ghost AddyKen-ghost deleted the llmo-3959 branch April 10, 2026 10:11
solaris007 pushed a commit that referenced this pull request Apr 10, 2026
## [@adobe/spacecat-shared-data-access-v3.50.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.49.0...@adobe/spacecat-shared-data-access-v3.50.0) (2026-04-10)

### Features

* LLMO-3959 changing schema to add detectCdn flag ([#1501](#1501)) ([0bb4642](0bb4642))
@solaris007
Copy link
Copy Markdown
Member

🎉 This PR is included in version @adobe/spacecat-shared-data-access-v3.50.0 🎉

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.

3 participants