Skip to content

improvement: spike out simplifying multitenancy via moving config to repo - #245

Merged
zachdaniel merged 1 commit into
mainfrom
spike/repo-tenant-routing
Oct 17, 2026
Merged

zachdaniel merged 1 commit into
mainfrom
spike/repo-tenant-routing

Conversation

@zachdaniel

Copy link
Copy Markdown
Contributor

No description provided.

@C-Sinclair C-Sinclair left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much simpler! I wish I'd taken that approach to begin with. The temptation to add to the DSL was clearly too much for me 😅

# tests get them by asking here.
def write_transactions?, do: true

def tenant_repo(tenant, context), do: AshSqlite.Test.TenantRepos.repo(tenant, context)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I much prefer this callback living here, rather than the DSL plus the behaviour now that I see it!

@zachdaniel
zachdaniel merged commit d200a69 into main Oct 17, 2026
51 checks passed
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.

2 participants