Skip to content

Tombstoning a stream frees its natural key (fisher#522) - #523

Merged
jeremydmiller merged 2 commits into
mainfrom
stoat/nov-5-releases/fisher-522
Nov 5, 2026
Merged

jeremydmiller merged 2 commits into
mainfrom
stoat/nov-5-releases/fisher-522

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

Fixes #522

TombstoneStreamOperation now deletes the stream's rows from every fi_natural_key_* table (the lookup has no foreign key, so nothing else removed them). Under conjoined tenancy the delete is tenant-scoped, so other tenants keep their keys.

Tests: two new facts in natural_keys (single-tenant and conjoined) mirroring the two JasperFx 2.100 compliance facts; full Fisher.Tests green on net9.0 and net10.0. The 2.100 suite itself arrives with #521.

🤖 Generated with Claude Code

jeremydmiller and others added 2 commits November 5, 2026 15:18
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jeremydmiller
jeremydmiller merged commit b69d77f into main Nov 5, 2026
3 checks passed
jeremydmiller added a commit that referenced this pull request Nov 5, 2026
Conflict in EventAuxiliaryOperationsForSqlite.cs: main's #523 and this branch
each added the natural-key delete to TombstoneStreamOperation, the same fix
(same stream column, same conjoined tenant term, same set of tables). Kept
main's as the one implementation. Also dropped this branch's
EventGraph.QuotedNaturalKeyTableNames(), which nothing uses now; main's
NaturalKeyDefinitions() is the one that stays.

Directory.Packages.props / Directory.Build.props merged cleanly to main's:
Fisher 1.28.0, JasperFx.* 2.100.0, Weasel.* 9.49.0. Kept this branch's
smoke/aot-consumer pin of JasperFx.Events.SourceGenerator 2.100.0, since main
still pins 2.98.0 there, behind its own Directory.Packages.props.

Kept as they were: SupportsSessionTenantSwitching => true with the ForTenant
override, SupportsHoldingAnAppendOpen => false with its reason, and the
compliance_suite_inventory enrollment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tombstoning a stream leaves its natural key behind (JasperFx 2.100 NaturalKeyCompliance)

1 participant