Repository navigation
GH-1293 Public read-only check for SubscribeFromPriorVersionMark(); 3.15.2 - #1295
Merged
Merged
Conversation
…on starts from the prior version mark; 3.15.2 StartsFromPriorVersionMark and PriorVersionMarkBackfillName(databaseIdentifier) are public and read-only, so a store that can't run backfills can refuse SubscribeFromPriorVersionMark() without reflecting over the private strategy list. Closes #1293. Co-Authored-By: Claude Opus 5.5 <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 #1293.
Marten (JasperFx/marten#6197, for marten#6186) has to refuse
SubscribeFromPriorVersionMark()on a projection whose new version writes to an empty table, since Marten doesn't run backfills. Today it finds out by reflecting overAsyncOptions._strategiesand matching the internal strategy type by name. That check stops refusing silently if either name changes.New, additive, read-only members on
AsyncOptions:bool StartsFromPriorVersionMark: true whenSubscribeFromPriorVersionMark()was called for any database.string? PriorVersionMarkBackfillName(string? databaseIdentifier = null): the backfill name that decides where the projection starts, or null. With a database identifier it resolves the way the daemon does, so a rule for that database wins over the every-database rule. Without one, only the every-database rule counts.Also in this PR:
JasperFxVersiongoes to 3.15.2, so it ships straight after merge. Marten #6197, Polecat and Fisher can then use it instead of reflection.Tests: 5 new facts in
PriorVersionMarkTests, covering none, every database, one database, a database rule overriding the every-database rule, and another strategy.EventTestspasses 4426/4426 on net10.0.🤖 Generated with Claude Code