feat(#435): exact ReadProjectionProgressAsync(ShardName) overload#529
Merged
Conversation
…IEventDatabase Adds a second, exact per-cell progression read alongside the (projectionName, tenantId) overload: the caller supplies the full ShardName it already holds (e.g. a cell from AllProjectionProgress), so the store looks up the single row whose stored identity equals name.Identity with no version/shard collapsing. A blue/green deploy's versions, a sliced projection's shard keys, and per-tenant partitions each address their own row unambiguously; a ShardKey of "All" is the projection's global cell, matching the store's "All means the whole projection" convention. Ships as a default interface member that throws NotSupportedException (same contract as the existing overload): null is the meaningful "no row yet" answer and must not be borrowed by a store that has not implemented this. Event stores (Marten, Polecat) override it against their progression table in follow-ups. Bumps to 2.29.0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XKKBPsFJ83jd2o4hyGJnj6
This was referenced Jul 17, 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.
Adds a second, exact per-cell progression read on
IEventDatabasealongside the existing(projectionName, tenantId)overload:The caller supplies the full
ShardNameit already holds (e.g. a cell fromAllProjectionProgress), so the store looks up the single row whose stored identity equalsname.Identity— no version/shard collapsing. A blue/green deploy's versions, a sliced projection's shard keys, and per-tenant partitions each address their own row unambiguously; aShardKeyofAllis the projection's global cell, matching the store's "All means the whole projection" convention.Ships as a default interface member that throws
NotSupportedException— same contract as the existing overload (#519):nullis the meaningful "no row yet" answer and must not be borrowed by a store that hasn't implemented this. Event stores adopt it in follow-ups (Marten JasperFx/marten, Polecat JasperFx/polecat).Extends
ReadProjectionProgressDefaultsTests(default-throws + implementing-store-returns-a-row for the new overload). Bumps to 2.29.0.🤖 Generated with Claude Code