{"issue":{"created_at":"2011-12-02T08:39:34Z","state":"open","updated_at":"2011-12-02T08:39:34Z","user":{"gravatar_id":"5cb7a05b6de4a6655319db9333be429c","id":22904,"url":"https://api.github.com/users/andyjeffries","login":"andyjeffries","avatar_url":"https://secure.gravatar.com/avatar/5cb7a05b6de4a6655319db9333be429c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"body":"Here is a simple set of steps that demonstrates the problem better than I could explain it:\r\n\r\n1) Go to http://demo.activeadmin.info/admin/products\r\n\r\n2) 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)\r\n\r\n3) Search by an author, \"lucas\" works at the moment\r\n\r\n4) Notice that \"All\" scope still says 33, but the page shows far less items (currently 3)\r\n\r\n5) Click the \"All\" scope\r\n\r\n6) Now the scope correctly says 3 (and the other scope counts are correct as well).\r\n\r\nIt'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.\r\n\r\nThere are two possible solutions:\r\n\r\na) 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)\r\n\r\nb) Have the scope click reset the filters to empty\r\n\r\nPersonally I prefer a, but either is better than the current situation.\r\n\r\nMany thanks for ActiveAdmin though, it's awesome, just trying to suggest a minor improvement.. :-)","assignee":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2425023,"labels":[],"number":805,"title":"Scope counts are inconsistent with filters","closed_at":null,"html_url":"https://github.com/gregbell/active_admin/issues/805","url":"https://api.github.com/repos/gregbell/active_admin/issues/805","milestone":null},"action":"opened"}