Skip to content

Document enrichment limitation with FetchForWriting/FetchLatest#4230

Merged
jeremydmiller merged 1 commit intomasterfrom
fix/4082-aggregate-versioning-compiled-queries
Apr 6, 2026
Merged

Document enrichment limitation with FetchForWriting/FetchLatest#4230
jeremydmiller merged 1 commit intomasterfrom
fix/4082-aggregate-versioning-compiled-queries

Conversation

@jeremydmiller
Copy link
Copy Markdown
Member

Summary

  • Add warning callouts to enrichment documentation explaining that EnrichEventsAsync is not called during FetchForWriting() or FetchLatest() with Live aggregations
  • Enrichment is designed for read model projections (async daemon / inline SaveChanges)
  • Advises resolving reference data in command handlers or including it in event payloads for write model usage

Addresses #4082

Changes

  • docs/events/projections/enrichment.md — warning callout at top of page
  • docs/events/projections/event-projections.md — warning callout in EventProjection enrichment section

🤖 Generated with Claude Code

…tchLatest

Add warning callouts to both the aggregation projection enrichment docs
and the EventProjection enrichment docs explaining that EnrichEventsAsync
is designed for read model projections (async daemon / inline SaveChanges)
and is NOT called during FetchForWriting() or FetchLatest() with Live
aggregations. Advises resolving reference data in command handlers or
including it in event payloads for write model usage.

Addresses #4082

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jeremydmiller added a commit to JasperFx/polecat that referenced this pull request Apr 6, 2026
…rning

Add EnrichEventsAsync documentation to the EventProjection page with
a warning that enrichment is designed for read model projections and
is NOT called during FetchForWriting() or FetchLatest().

Mirror of JasperFx/marten#4230

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jeremydmiller jeremydmiller merged commit cb97764 into master Apr 6, 2026
1 check passed
@jeremydmiller jeremydmiller deleted the fix/4082-aggregate-versioning-compiled-queries branch April 6, 2026 16:57
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