Repository navigation
Commit 4ed2592
chore: update to Fusion 15.0.8
Fusion 15 replaces replay-based invalidation with deferred invalidation. Every
mutating handler in the four backends loses its `if (Invalidation.IsActive) { ... }`
prologue; the calls it made become an Invalidation.Defer(...) block after the
SaveChangesAsync that earns them, and each service declares Replicated - these are
DbServiceBase-backed, so their operations are stored and reach other hosts.
Operation.Items is gone with the replay pass it fed. It existed to carry a value
computed during the mutation into the second pass, and a deferred block closes over
that value directly instead:
- QuestionsBackend passed the new question's Index and the removed votes' voter ids
- RoomsBackend passed the new room's id, which the block can now just use
Three handlers in UsersBackend had a bare `if (Invalidation.IsActive) return;` with
nothing to invalidate - dead code once nothing replays a handler.
The schema migration is the part a green build doesn't catch: _Operations drops
ItemsJson and NestedOperations and gains CommandData / InvalidationCallsJson /
InvalidationCallsData, _Events gains ValueData, and the *Json columns become
nullable. Without it every test failed at fixture startup on EF's
PendingModelChangesWarning, and a deployed host would fail on the first write with
'column "CommandData" of relation "_Operations" does not exist'.
Verified: TownHall.slnx builds and all 68 tests pass, including InvalidationTests,
QuestionsTests and RoomsTests - the three that cover the handlers whose
Operation.Items captures were rewritten.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WprvfqjccjCXdTV3dGa6WH1 parent 7167e05 commit 4ed2592
8 files changed
Lines changed: 478 additions & 119 deletions
File tree
- src
- TownHall.Db/Migrations
- TownHall.Host/Services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments