elsa-core/test/unit/Elsa.Workflows.Management.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
..
Filters Refine timestamp filter validation feedback 2026-05-21 01:49:44 +02:00
Handlers/Notifications Add output converter support at binding boundaries 2026-07-31 04:10:48 +02:00
Helpers Improves workflow materializer handling (#7195) 2026-01-19 08:59:12 +01:00
Mappers Refactor: Overhauls workflow JSON type serialization (#7549) 2026-05-31 11:09:39 +02:00
Services Avoid repeated tenant-agnostic registry population 2026-08-02 01:59:45 +02:00
Stores fix(persistence): honor tenant isolation in Memory workflow stores (#8100) 2026-09-13 02:56:01 -07:00
Elsa.Workflows.Management.UnitTests.csproj Add code coverage configuration and adjust test projects (#7049) 2025-11-12 13:59:36 +01:00