Skip to content

feat(brands): persist and return URL type field in brand_sites (LLMO-4058)#2149

Open
dzehnder wants to merge 2 commits intomainfrom
feat/LLMO-4058-persist-base-url-type
Open

feat(brands): persist and return URL type field in brand_sites (LLMO-4058)#2149
dzehnder wants to merge 2 commits intomainfrom
feat/LLMO-4058-persist-base-url-type

Conversation

@dzehnder
Copy link
Copy Markdown
Contributor

@dzehnder dzehnder commented Apr 7, 2026

Summary

  • Updates syncBrandSites() to track and persist the type field (e.g. "base") from URL entries to the brand_sites table
  • Updates mapDbBrandToV2() and BRAND_SELECT to return type on base-URL entries
  • 3 new test cases covering type persistence, type in V2 mapping, and backward compatibility

Prerequisite: DB migration required before deploy:

ALTER TABLE brand_sites ADD COLUMN type TEXT DEFAULT NULL;

Companion PR: adobe-rnd/llmo-data-retrieval-service#1222 (DRS injects baseUrl with type: "base")

Jira: LLMO-4058

Test plan

  • CI green (unit tests)
  • DB migration applied to dev/stage
  • Integration test: upsert a brand with a URL having type: "base", verify GET returns it
  • Deploy before companion DRS PR

🤖 Generated with Claude Code

dzehnder added 2 commits April 7, 2026 15:32
…4058)

  Update brands-storage to persist the type field (e.g. \"base\") through
  syncBrandSites and return it on base-URL entries in mapDbBrandToV2.
  Companion to DRS change that injects baseUrl with type: \"base\".

  Requires DB migration: ALTER TABLE brand_sites ADD COLUMN type TEXT DEFAULT NULL;
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

This PR will trigger a minor release when merged.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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