Add @RootBlockEntity and @EntityInfo decorators to Brevo email campaign entity - #6339
Open
VPS-Obi wants to merge 1 commit into
Open
Add @RootBlockEntity and @EntityInfo decorators to Brevo email campaign entity#6339VPS-Obi wants to merge 1 commit into
@RootBlockEntity and @EntityInfo decorators to Brevo email campaign entity#6339VPS-Obi wants to merge 1 commit into
Conversation
…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
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
@RootBlockEntity and @EntityInfo decorators to Brevo email campaign entity
VPS-Obi
marked this pull request as ready for review
September 9, 2026 10:35
VPS-Obi
added this pull request to stack #6341
September 9, 2026 10:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The entity created by
createEmailCampaignEntityhas 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 theEntityInfoview. 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
titleas name andsubjectas secondary information.https://claude.ai/code/session_01FGo1u63xMfdYJJmFWccaT6