You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rails_admin version 3.1.2, when a model is configured to have tabbed scopes on the index page and you do a filter search, the results are always scoped to the first tab and not the current scope/tab as expected.
Reproduction steps
I updated the active_record dummy app Ball model to have scopes like this:
Here you can see that I'm on the "Blue" scope tab and added a filter to only show balls of type "Basketball".
After clicking refresh, I expect the page to stay on the "Blue" tab and show only basketballs, but instead, it updates to only show basketballs for the default scope which is "Red".
If I then click on the blue tab, I see the results that I expected, but having to do that is an extra step and breaks the expectations set by previous versions.
Additional context
rails version: 6.1.7.6
rails_admin version: 3.1.2
I'm updating from rails_admin version 2.2.1, so I know that scopes and filters behaved as expected in at least that version.
The text was updated successfully, but these errors were encountered:
In rails_admin version 3.1.2, when a model is configured to have tabbed scopes on the index page and you do a filter search, the results are always scoped to the first tab and not the current scope/tab as expected.
Reproduction steps
I updated the active_record dummy app
Ball
model to have scopes like this:Here you can see that I'm on the "Blue" scope tab and added a filter to only show balls of type "Basketball".
After clicking refresh, I expect the page to stay on the "Blue" tab and show only basketballs, but instead, it updates to only show basketballs for the default scope which is "Red".
If I then click on the blue tab, I see the results that I expected, but having to do that is an extra step and breaks the expectations set by previous versions.
Additional context
rails
version: 6.1.7.6rails_admin
version: 3.1.2I'm updating from rails_admin version 2.2.1, so I know that scopes and filters behaved as expected in at least that version.
The text was updated successfully, but these errors were encountered: