Skip to content

feat: apply hierarchical tenant ancestor attributes in attribute multitenancy filters#240

Open
jechol wants to merge 1 commit into
ash-project:mainfrom
jechol:hierarchical-tenants
Open

feat: apply hierarchical tenant ancestor attributes in attribute multitenancy filters#240
jechol wants to merge 1 commit into
ash-project:mainfrom
jechol:hierarchical-tenants

Conversation

@jechol

@jechol jechol commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Companion to ash-project/ash#2796 (hierarchical tenants via ancestor_attributes).

One change: the attribute-multitenancy tenant filter applied when joining relationships now reduces over Ash.Resource.Info.multitenancy_attribute_values/3 — the ancestor pairs plus the tenant attribute — instead of the single tenant attribute, so joined rows are constrained to the same hierarchy. Resources without ancestor_attributes produce the same single filter as before.

Runtime coverage lives in the ash_postgres companion PR, ash-project/ash_postgres#804. Proposal issue with the full picture: ash-project/ash#2797.

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

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.

1 participant