{"action":"opened","issue":{"url":"https://api.github.com/repos/backbone-paginator/backbone.paginator/issues/294","labels_url":"https://api.github.com/repos/backbone-paginator/backbone.paginator/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/backbone-paginator/backbone.paginator/issues/294/comments","events_url":"https://api.github.com/repos/backbone-paginator/backbone.paginator/issues/294/events","html_url":"https://github.com/backbone-paginator/backbone.paginator/issues/294","id":100145829,"number":294,"title":"[Feature Request] SOME sort of support for pre-filtering (or at least some guidelines on how to do it now)","user":{"login":"ambischof","id":7795449,"avatar_url":"https://avatars.githubusercontent.com/u/7795449?v=3","gravatar_id":"","url":"https://api.github.com/users/ambischof","html_url":"https://github.com/ambischof","followers_url":"https://api.github.com/users/ambischof/followers","following_url":"https://api.github.com/users/ambischof/following{/other_user}","gists_url":"https://api.github.com/users/ambischof/gists{/gist_id}","starred_url":"https://api.github.com/users/ambischof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambischof/subscriptions","organizations_url":"https://api.github.com/users/ambischof/orgs","repos_url":"https://api.github.com/users/ambischof/repos","events_url":"https://api.github.com/users/ambischof/events{/privacy}","received_events_url":"https://api.github.com/users/ambischof/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-10T19:15:53Z","updated_at":"2015-08-10T19:15:53Z","closed_at":null,"body":"I'm aware of the issue https://github.com/backbone-paginator/backbone.paginator/issues/272 whose aim is to do in essence what I'm asking, but I decided to open an issue because I don't believe that's the *only* way of doing it.\r\n\r\nI am also aware of this section in the faq: \r\n>Why doesn't backbone.paginator support filtering?\r\n>\r\n>Wheels should be reinvented only when they are crooked. backbone.paginator aims to do one thing only and does it well, which is pagination and sorting. Besides, since Backbone.PageableCollection is 100% compatible with Backbone.Collection, you can do filtering fairly easily with Backbone's built-in support for Underscore.js methods.\r\n\r\nI feel this isn't the case because in almost all cases, you want filtering to happen *before* pagination. Filtering already paginated data is kind of useless. Any workaround I can think of now requires either \r\n\r\n* another wrapper collection holding unfiltered data and changing paginatorCollection.fullCollection to hold the filtered data (with a lot of update hooks) or \r\n* overriding the way the paginator collection accesses the fullCollection's models to include a hook to do the filtering.\r\n\r\nI haven't actually tried either yet but I don't really want to have to do either of them, seeing as I'd already created working pagination system from scratch (at least to fit my needs) before I'd adopted this library.\r\n\r\nIs there some solution that I'm missing? "}}