-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 tenant: option to tagged_with #1102
base: master
Are you sure you want to change the base?
Conversation
2ff9ac3
to
aea801d
Compare
@mbleigh can we get this added in? Would be a huge help for people. |
This is a great change. We are heavy users of the amazing ActsAsTenant gem and created the following rails initializer to scope our tags & taggings to the set tenant. This PRs change is a lot more flexible, though will require being a bit more explicit on the tenant setting (vs using ActsAsTenant & the require_tenant = true flag).
Related spec (likely needs tweaks for others to use):
|
@mbleigh any progress on getting this into a new release? It would be hugely helpful |
Hey folks, apologies I haven't been the maintainer of this gem for close to a decade so it wouldn't be appropriate for me to decide if it's a good fit. @seuros I believe you were the last contributor to put a release together, are you still actively working on related things? |
I will try to get some time soon to update this gem. I avoided adding new features unless they are opt-in. |
To improve multi tenancy support, I thought it would be good to add a
tenant:
option to thetagged_with
query. We have 1.2M tagged objects in our database, and adding this tenant filter to that query should make it significantly faster to find objects tagged within a certain tenant.