Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Multitenancy Support to ash_phoenix.gen.live & ash_phoenix.gen.html #310

Open
jeffhuen opened this issue Feb 12, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@jeffhuen
Copy link

Currently, mix ash_phoenix.gen.live does not natively support multitenancy. For users building SaaS applications with Ash and AshPostgres, handling multitenancy requires manual intervention.

Generated LiveView pages do not automatically respect tenant context, requiring additional modifications to:
• Ensure LiveView sessions and queries include tenant information.
• Modify mount/3 in generated LiveViews to retrieve and apply the correct tenant.
• Adjust the router to properly assign tenants for multitenant-aware resources.

Without first-class support for multitenancy in ash_phoenix.gen.live, developers need to manually patch these issues every time they generate a new resource.

@jeffhuen jeffhuen added the enhancement New feature or request label Feb 12, 2025
@zachdaniel zachdaniel moved this to Someday in Ash Framework Roadmap Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Someday
Development

No branches or pull requests

1 participant