Skip to content

chore(migration): document @EventTag migration for Axon 5 compatibiity#4538

Merged
MateuszNaKodach merged 3 commits into
axon-5.1.xfrom
docs/event-tag
May 19, 2026
Merged

chore(migration): document @EventTag migration for Axon 5 compatibiity#4538
MateuszNaKodach merged 3 commits into
axon-5.1.xfrom
docs/event-tag

Conversation

@MateuszNaKodach
Copy link
Copy Markdown
Contributor

Add comprehensive guidelines for migrating from @AggregateIdentifier to @EventTag in Axon Framework 5. Include examples for explicit and derived tag keys, architecture-neutral constraints, and Dynamic Consistency Boundaries (DCB) preparations.

…lity

Add comprehensive guidelines for migrating from `@AggregateIdentifier` to `@EventTag` in Axon Framework 5. Include examples for explicit and derived tag keys, architecture-neutral constraints, and Dynamic Consistency Boundaries (DCB) preparations.
@MateuszNaKodach MateuszNaKodach requested a review from a team as a code owner May 5, 2026 16:13
@MateuszNaKodach MateuszNaKodach requested review from hatzlj, jangalinski and laura-devriendt-lemon and removed request for a team May 5, 2026 16:13
@MateuszNaKodach MateuszNaKodach self-assigned this May 5, 2026
@MateuszNaKodach MateuszNaKodach added Priority 1: Must Highest priority. A release cannot be made if this issue isn’t resolved. Type: Documentation Use to signal issues that describe documentation work. labels May 5, 2026
@MateuszNaKodach MateuszNaKodach added this to the Release 5.1.1 milestone May 5, 2026
@MateuszNaKodach MateuszNaKodach requested a review from smcvb May 5, 2026 16:13
Copy link
Copy Markdown
Contributor

@hatzlj hatzlj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor spelling suggestions, otherwise looks like a very helpful addition 👍

Comment thread docs/reference-guide/modules/migration/pages/paths/aggregates/index.adoc Outdated
Comment thread docs/reference-guide/modules/migration/pages/paths/aggregates/index.adoc Outdated
====
* `@AggregateIdentifier` is **no longer required** on the entity (also see xref:migration:paths/aggregates/configuration-migration.adoc[entity configuration migration]).
* Each event must declare a `@EventTag` whose key matches the entity's `tagKey` and whose value is the entity identifier.
* Without migrating to xref:migration:understanding-architecture-principles.adoc#moving-away-from-aggregates[Dynamic Consistency Boundaries (DCB)], **exactly one `@EventTag` per event is supported and required** — the one matching the entity it belongs to.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should teach our AIs to not put spaces before or after Em Dashes (violating our vale rule for em dashes)

Suggested change
* Without migrating to xref:migration:understanding-architecture-principles.adoc#moving-away-from-aggregates[Dynamic Consistency Boundaries (DCB)], **exactly one `@EventTag` per event is supported and required**the one matching the entity it belongs to.
* Without migrating to xref:migration:understanding-architecture-principles.adoc#moving-away-from-aggregates[Dynamic Consistency Boundaries (DCB)], **exactly one `@EventTag` per event is supported and required**the one matching the entity it belongs to.

Copy link
Copy Markdown
Contributor

@hatzlj hatzlj May 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just reviewed the CLAUDE.md under docs/ and it reiterates rules configured via .vale.ini or our Axoniq vale package.

AxonIQ/axoniq-library-site#114 is an attempt to centralize the vale configuration which is currently distributed/inconsistent across several repos. In the course of that I think it makes sense to create some kind of AI instruction file in the central vale package which we can reference from the CLAUDE.md in our repositories instead of putting actual rules there that might be outdated. I've adjusted the issue for that to include a fix for the AI instructions. What do you think, would that work this way?

Copy link
Copy Markdown
Contributor

@smcvb smcvb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this rather important addition, @MateuszNaKodach! We definitely need a section explaining this. However, I think this may allow for a dedicated page, given the importance of it. Surely linked to from the index.adoc you've put it in right now.

Wdyt?

Comment thread docs/reference-guide/modules/migration/pages/paths/aggregates/index.adoc Outdated
Extract the event tagging migration guide into its own page
(aggregates/event-tagging.adoc), address grammar and em-dash style
fixes from review, and wire up cross-references from messages.adoc
and the aggregates index.
@MateuszNaKodach MateuszNaKodach requested review from hatzlj and smcvb May 19, 2026 14:29
@MateuszNaKodach
Copy link
Copy Markdown
Contributor Author

I made some adjustements after your comments @smcvb - please re-check that.

Copy link
Copy Markdown
Contributor

@smcvb smcvb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My concerns have been addressed, hence I'm approving this pull request.

@MateuszNaKodach MateuszNaKodach enabled auto-merge (squash) May 19, 2026 21:33
@MateuszNaKodach MateuszNaKodach disabled auto-merge May 19, 2026 21:33
@MateuszNaKodach MateuszNaKodach merged commit 1d48d9a into axon-5.1.x May 19, 2026
4 checks passed
@MateuszNaKodach MateuszNaKodach deleted the docs/event-tag branch May 19, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority 1: Must Highest priority. A release cannot be made if this issue isn’t resolved. Type: Documentation Use to signal issues that describe documentation work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants