Skip to content

Unique indexes are not respecting tenants #173

@JohnCampionJr

Description

@JohnCampionJr

Indexes are not doing anything special with tenant ID's.

So uniques were being filtered across the collection instead of by tenant.

As I thought about it, it makes sense to include tenant ID on indexes specifically created by attributes on IHaveTenantId entities.

Thought about adding an index automatically on the tenant ID, but that's early done with an [Index] attribute on that property.

PR coming with fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions