Fix BoundaryAggregate default stream identity#4588
Merged
jeremydmiller merged 2 commits intoMay 29, 2026
Conversation
The JasperFx SG emits IGeneratedSyncEvolver<TDoc, string> for boundary aggregates (#324). EventGraph.Build<TDoc>() was picking TId from StreamIdentity, so under the default AsGuid the runtime built SingleStreamProjection<TDoc, Guid> and FetchForWritingByTags<TDoc>(...) threw "No source-generated dispatcher found ...". Force TId=string when [BoundaryAggregate] is present, regardless of StreamIdentity. Existing dcb_boundary_aggregate_fetch_for_writing_tests only covered StreamIdentity.AsString; added a sibling fixture for the default-Guid path.
This was referenced May 30, 2026
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.
Match SG
TId=stringfor[BoundaryAggregate]inEventGraph.Build<TDoc>The JasperFx SG emits
IGeneratedSyncEvolver<TDoc, string>for boundary aggregates (#324).EventGraph.Build<TDoc>()was pickingTIdfromStreamIdentity, so under the defaultAsGuidthe runtime builtSingleStreamProjection<TDoc, Guid>andFetchForWritingByTags<TDoc>(...)threwNo source-generated dispatcher found .... ForceTId=stringwhen[BoundaryAggregate]is present, regardless ofStreamIdentity.Existing dcb_boundary_aggregate_fetch_for_writing_tests only covered
StreamIdentity.AsString;added a sibling fixture for the default-Guid path.Also a little unrelated .gitgnore entry (was sitting in my local commit)