{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/1572","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/1572/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/1572/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/1572/events","html_url":"https://github.com/Polymer/polymer/issues/1572","id":78395406,"number":1572,"title":"dom-repeat filter/sort needs to be able to observe parent scope","user":{"login":"mbleigh","id":1022,"avatar_url":"https://avatars.githubusercontent.com/u/1022?v=3","gravatar_id":"","url":"https://api.github.com/users/mbleigh","html_url":"https://github.com/mbleigh","followers_url":"https://api.github.com/users/mbleigh/followers","following_url":"https://api.github.com/users/mbleigh/following{/other_user}","gists_url":"https://api.github.com/users/mbleigh/gists{/gist_id}","starred_url":"https://api.github.com/users/mbleigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbleigh/subscriptions","organizations_url":"https://api.github.com/users/mbleigh/orgs","repos_url":"https://api.github.com/users/mbleigh/repos","events_url":"https://api.github.com/users/mbleigh/events{/privacy}","received_events_url":"https://api.github.com/users/mbleigh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-20T06:31:25Z","updated_at":"2015-05-20T06:32:32Z","closed_at":null,"body":"Right now, the `dom-repeat` filter and sort only refire on array mutations or item subproperty changes with the `observe` attribute. However this ignores a very common use case for filtering and sorting: user-driven changes to filter. Imagine for instance a simple list of items with a \"text search\" filter:\r\n\r\n```html\r\n<template is=\"dom-repeat\" filter=\"search\">\r\n  <span>[[item.name]]</span>\r\n</template>\r\n\r\n<script>\r\nPolymer({\r\n  search: function(item) {\r\n    return item.name.toLowerCase().indexOf(this.q.toLowerCase()) >= 0;\r\n  }\r\n});\r\n</script>\r\n```\r\n\r\nIn this scenario, there is no way to make the template re-stamp when an *external* parameter changes (e.g. `q` in the example)."},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/103778193","html_url":"https://github.com/Polymer/polymer/issues/1572#issuecomment-103778193","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/1572","id":103778193,"user":{"login":"mbleigh","id":1022,"avatar_url":"https://avatars.githubusercontent.com/u/1022?v=3","gravatar_id":"","url":"https://api.github.com/users/mbleigh","html_url":"https://github.com/mbleigh","followers_url":"https://api.github.com/users/mbleigh/followers","following_url":"https://api.github.com/users/mbleigh/following{/other_user}","gists_url":"https://api.github.com/users/mbleigh/gists{/gist_id}","starred_url":"https://api.github.com/users/mbleigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbleigh/subscriptions","organizations_url":"https://api.github.com/users/mbleigh/orgs","repos_url":"https://api.github.com/users/mbleigh/repos","events_url":"https://api.github.com/users/mbleigh/events{/privacy}","received_events_url":"https://api.github.com/users/mbleigh/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T06:32:32Z","updated_at":"2015-05-20T06:32:32Z","body":"Note that because of this limitation I am currently manually calling through to the private `_render()` method in my app code. I didn't see any other way to achieve the desired effect."}}