gregbell/active_admin — Issue #805: Scope counts are inconsistent with filters
Author: andyjeffries
Created: 2011-12-02 08:39:34+00:00
State: open

Here is a simple set of steps that demonstrates the problem better than I could explain it:

1) Go to http://demo.activeadmin.info/admin/products

2) Notice that the "All" scope says 33 (or whatever it is when you visit) (the same applies to all scopes, but we'll focus on one)

3) Search by an author, "lucas" works at the moment

4) Notice that "All" scope still says 33, but the page shows far less items (currently 3)

5) Click the "All" scope

6) Now the scope correctly says 3 (and the other scope counts are correct as well).

It's a bit misleading for users to filter results, see 33 by a scope and click on it (expecting to see 33 records) then only see 3 and have it update to 3.

There are two possible solutions:

a) Have the count immediately effect the filters in effect (so when filtering by lucas, the scope counts are correct as they would be if you click one of them)

b) Have the scope click reset the filters to empty

Personally I prefer a, but either is better than the current situation.

Many thanks for ActiveAdmin though, it's awesome, just trying to suggest a minor improvement.. :-)