-
-
Notifications
You must be signed in to change notification settings - Fork 808
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
Custom scope within grouping does not apply filter #1339
Comments
This is also breaking a use-case over here. Quick/reproducible demo: Here's another minimal scope definition for reproducing: scope :example_scope, ->(value) do
where(id: value)
end And here's some example interaction:
Looking at the code, it looks sort of like scopes are "bolted on" after everything else (see |
I have a similar query added for select-search filter as here. Pls clarify on this. The end result is that, results aren't filtered in the way it is expected to be. |
I found the solution for this issue. Seems upgrading activeadmin-addons from 1.7.x to 1.10.x is working correctly. Hence this issue is resolved |
any updates to this? i think i have the same issue #1490 |
This query simply ignores
custom_scope
.Scope is defined as:
Possibly related to #653 but here it's silently doing a wrong behavior instead of raising an error.
This sadly breaks activeadmin_addons's Ajax search integration when using custom scopes.
Is there a way to work around this?
The text was updated successfully, but these errors were encountered: