#4966: Natural key is not updated when rebuilding a projection#4967
Closed
ytqsl wants to merge 1 commit into
Closed
#4966: Natural key is not updated when rebuilding a projection#4967ytqsl wants to merge 1 commit into
ytqsl wants to merge 1 commit into
Conversation
Member
|
Thanks for the clear reproduction, @ytqsl! Superseded by #4970, which retains your test (with you as co-author), bumps to JasperFx 2.28.1 carrying the actual fix (JasperFx/jasperfx#528), and closes #4966. Root cause: natural-key discovery silently skipped a two-arg static evolve method ( |
jeremydmiller
added a commit
that referenced
this pull request
Jul 17, 2026
…8.1 (#4970) A natural key that CHANGES via an update event was never written to the mt_natural_key_X lookup table — only the create event's key was recorded — so FetchLatest-by-natural-key could not find the stream under its new key after a rebuild (or live inline append). Root cause and fix are in JasperFx: natural-key discovery silently skipped a two-arg static evolve method (static TDoc Apply(TEvent e, TDoc current)), so no mapping was built for the update event (#528). This bumps the JasperFx packages to 2.28.1 to pick up that fix. Includes the original reproduction test from #4967 (thanks @ytqsl); it fails on 2.28.0 ("should not be null but was") and passes on 2.28.1. Supersedes #4967. Closes #4966. Claude-Session: https://claude.ai/code/session_01XKKBPsFJ83jd2o4hyGJnj6 Co-authored-by: Yossi Tamari <yossi.tamari@gov.ab.ca> Co-authored-by: Claude Opus 4.8 (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.
No description provided.