Merged
Conversation
Closes #29 The ProjectLatest<T> feature was already implemented (both Guid and string overloads) with 4 passing tests. This adds 2 more tests covering string-key streams specifically: - project_latest_with_string_key_includes_pending_events - project_latest_merges_committed_and_pending_for_string_key Both verify that in-flight (uncommitted) events are included in the projected aggregate, eliminating the need for a forced SaveChanges flush before reading projected state. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Expand the project-latest docs page with motivation section, behavior details, merge example, and string-key stream coverage — mirroring the equivalent Marten documentation. Add mdsnippets region markers to the test file so code samples are automatically injected into the docs at build time. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Closes #29
Summary
The
ProjectLatest<T>()feature was already fully implemented (both Guid and string-key overloads) with 4 passing tests. This PR adds 2 additional tests covering string-key streams:project_latest_with_string_key_includes_pending_events— verifies in-flight events fromStartStreamare projected without committingproject_latest_merges_committed_and_pending_for_string_key— verifies committed + uncommitted events are merged in the projectionBoth tests confirm that the forced
SaveChangesAsync()flush is unnecessary when usingProjectLatest<T>()— exactly the pattern described in the issue.Test plan
🤖 Generated with Claude Code