{"action":"created","issue":{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/1596","labels_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/1596/labels{/name}","comments_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/1596/comments","events_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/1596/events","html_url":"https://github.com/marionettejs/backbone.marionette/issues/1596","id":37368080,"number":1596,"title":"CollectionView / CompositeView should have an optional filter method","user":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/labels/discussion","name":"discussion","color":"cccccc"},{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/labels/minor","name":"minor","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/milestones/27","labels_url":"https://api.github.com/repos/marionettejs/backbone.marionette/milestones/27/labels","id":887374,"number":27,"title":"v2.4","description":"","creator":{"login":"jmeas","id":2322305,"avatar_url":"https://avatars.githubusercontent.com/u/2322305?v=3","gravatar_id":"","url":"https://api.github.com/users/jmeas","html_url":"https://github.com/jmeas","followers_url":"https://api.github.com/users/jmeas/followers","following_url":"https://api.github.com/users/jmeas/following{/other_user}","gists_url":"https://api.github.com/users/jmeas/gists{/gist_id}","starred_url":"https://api.github.com/users/jmeas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmeas/subscriptions","organizations_url":"https://api.github.com/users/jmeas/orgs","repos_url":"https://api.github.com/users/jmeas/repos","events_url":"https://api.github.com/users/jmeas/events{/privacy}","received_events_url":"https://api.github.com/users/jmeas/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":32,"state":"open","created_at":"2014-12-02T04:21:27Z","updated_at":"2015-02-24T14:52:41Z","due_on":"2015-01-09T05:00:00Z","closed_at":null},"comments":34,"created_at":"2014-07-08T13:12:06Z","updated_at":"2015-02-24T14:52:41Z","closed_at":"2015-02-24T14:52:41Z","body":"Collections have a comparator, and we now respect that in the view layer. However the next most common tasks for lists is to filter / reduce the set of results shown to the user.\r\n\r\nThere are currently several strategies, such as resetting with a new collection, using a third party plugin like backbone filtered collection, or to hack into `addChildView`.\r\n\r\nWe should provide a formal way for people to do this to remove the burden from the developer.\r\n\r\n```js\r\nMarionette.CollectionView.extend({\r\n  filter/omit/where: function(model, ChildView, index) {\r\n    return true / false\r\n  }\r\n})\r\n```\r\n\r\n\r\n* https://github.com/marionettejs/backbone.marionette/issues/183\r\n* https://github.com/marionettejs/backbone.marionette/issues/835"},"comment":{"url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/comments/75770213","html_url":"https://github.com/marionettejs/backbone.marionette/issues/1596#issuecomment-75770213","issue_url":"https://api.github.com/repos/marionettejs/backbone.marionette/issues/1596","id":75770213,"user":{"login":"cmaher","id":1278501,"avatar_url":"https://avatars.githubusercontent.com/u/1278501?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaher","html_url":"https://github.com/cmaher","followers_url":"https://api.github.com/users/cmaher/followers","following_url":"https://api.github.com/users/cmaher/following{/other_user}","gists_url":"https://api.github.com/users/cmaher/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaher/subscriptions","organizations_url":"https://api.github.com/users/cmaher/orgs","repos_url":"https://api.github.com/users/cmaher/repos","events_url":"https://api.github.com/users/cmaher/events{/privacy}","received_events_url":"https://api.github.com/users/cmaher/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T14:52:41Z","updated_at":"2015-02-24T14:52:41Z","body":"Resolved by #1596"}}