Skip to content

Commit 4ed2592

Browse files
alexyakuninclaude
andcommitted
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_01WprvfqjccjCXdTV3dGa6WH
1 parent 7167e05 commit 4ed2592

8 files changed

Lines changed: 478 additions & 119 deletions

‎Directory.Packages.props‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project ToolsVersion="latest" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<!-- Constants -->
44
<PropertyGroup>
5-
<ActualLabFusionVersion>14.4.16</ActualLabFusionVersion>
5+
<ActualLabFusionVersion>15.0.8</ActualLabFusionVersion>
66
<AspNetCoreVersion>[10.0.9,)</AspNetCoreVersion>
77
<BlazorVersion>$(AspNetCoreVersion)</BlazorVersion>
88
<EntityFrameworkCoreVersion>[10.0.9,)</EntityFrameworkCoreVersion>

‎src/TownHall.Db/Migrations/20261004014707_FusionV15OperationsSchema.Designer.cs‎

Lines changed: 292 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)