elsa-core/test/unit/Elsa.Common.UnitTests
Sipke Schoorstra f4762308a2
fix(persistence): honor tenant isolation in Memory workflow stores (#8100)
* fix(persistence): honor tenant isolation in Memory workflow stores

Apply the EF SetTenantIdFilter admission rule on Memory definition,
trigger, and bookmark query paths so ambient tenant and TenantAgnostic
match IgnoreQueryFilters instead of leaking cross-tenant rows.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

* fix(persistence): stop Memory definition delete from wiping other tenants

DeleteAsync collected logical DefinitionIds from tenant-visible rows,
then removed every in-memory row with those IDs. Shared DefinitionIds
across tenants therefore deleted tenant B when tenant A deleted.

Keep the all-versions-of-DefinitionId Memory delete, but apply the same
TenantVisibility rule (or TenantAgnostic bypass) to the final removal.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-09-13 02:56:01 -07:00
..
Codecs Fix memory leak: Dispose IronCompressResult in Zstd codec (#7193) 2026-01-16 18:20:39 +01:00
Helpers
Models fix: correct workflow summary pagination on release 3.6.1 (#7392) 2026-04-15 14:06:53 +02:00
Multitenancy fix(persistence): honor tenant isolation in Memory workflow stores (#8100) 2026-09-13 02:56:01 -07:00
ShellHandlers [codex] Fix console log metadata and type resolution (#7542) 2026-05-30 22:52:01 +02:00
CShellsCompatibilityTests.cs Fix CShells dependency mismatch 2026-07-11 15:38:09 +02:00
Elsa.Common.UnitTests.csproj refactor: update package reference configuration 2026-08-03 13:15:18 +02:00
ExceptionExtensionsTests.cs [codex] Resolve build warnings (#7458) 2026-05-17 14:58:10 +02:00