Skip to content

Add @RootBlockEntity and @EntityInfo decorators to Brevo email campaign entity - #6339

Open
VPS-Obi wants to merge 1 commit into
mainfrom
claude/add-decorators-email-campaign-gybqra
Open

Add @RootBlockEntity and @EntityInfo decorators to Brevo email campaign entity#6339
VPS-Obi wants to merge 1 commit into
mainfrom
claude/add-decorators-email-campaign-gybqra

Conversation

@VPS-Obi

@VPS-Obi VPS-Obi commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The entity created by createEmailCampaignEntity has a root block (content), but was missing @RootBlockEntity(), so it wasn't picked up by the root block discovery. Blocks used inside an email campaign therefore never appeared in the block index: dependencies of the campaign's content weren't tracked, DAM files used in a campaign showed no usages, and their IDs weren't remapped when copying between scopes.

@EntityInfo() was missing as well, so the campaign had no entry in the EntityInfo view. Anything referencing a campaign (dependencies and warnings) couldn't resolve a name for it and logged a warning about the missing decorator instead.

The entity now uses title as name and subject as secondary information.

https://claude.ai/code/session_01FGo1u63xMfdYJJmFWccaT6

…ntity

The entity created by createEmailCampaignEntity has a root block (content)
but was missing @RootBlockEntity(), so root block discovery skipped it and
blocks used inside an email campaign never entered the block index. As a
result the campaign's content dependencies weren't tracked, DAM files used
in a campaign showed no usages, and their IDs weren't remapped when copying
between scopes.

@EntityInfo() was missing as well, so the campaign had no row in the
EntityInfo view and anything referencing it could not resolve a name,
logging a warning about the missing decorator instead. Use title as name
and subject as secondary information.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FGo1u63xMfdYJJmFWccaT6
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Advanced

Run ID: 94659c51-772f-4e73-adcf-10143587f121

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@VPS-Obi VPS-Obi self-assigned this Sep 9, 2026
@VPS-Obi VPS-Obi changed the title Add @RootBlockEntity and @EntityInfo decorators to email campaign Add @RootBlockEntity and @EntityInfo decorators to Brevo email campaign entity Sep 9, 2026
@VPS-Obi
VPS-Obi marked this pull request as ready for review September 9, 2026 10:35
@VPS-Obi
VPS-Obi requested a review from VPS-thodax September 9, 2026 10:35
@VPS-Obi
VPS-Obi added this pull request to stack #6341 September 9, 2026 10:47
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