citusdata / citusdata/activerecord-multi-tenant
Compatibility with ActiveAdmin?
- Dominant language
- Ruby
- Stars
- 759
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
Anyone managed to get this to work with ActiveAdmin? It seems that with AA you can only access the records that your normal user was last logged in under (i.e. AR is still scoping the DB calls with the last tenant). I know there is the `MultiTenant.without do` but it's not clear you can integrate that with AA.
I thought about adding a `current_user.admin_user?` to the model tenant definition but not sure if that is right or would work.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files, tests, or entry points. Start by tracing how ActiveAdmin accesses tenant-scoped records and compare that behavior with the documented MultiTenant.without block and tenant definition; the work is done when a supported integration approach is defined and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails, ruby
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100