{"action":"created","issue":{"url":"https://api.github.com/repos/calvinmetcalf/crypto-pouch/issues/37","repository_url":"https://api.github.com/repos/calvinmetcalf/crypto-pouch","labels_url":"https://api.github.com/repos/calvinmetcalf/crypto-pouch/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/calvinmetcalf/crypto-pouch/issues/37/comments","events_url":"https://api.github.com/repos/calvinmetcalf/crypto-pouch/issues/37/events","html_url":"https://github.com/calvinmetcalf/crypto-pouch/issues/37","id":161908249,"number":37,"title":"Using a view filter during a replication doesn't work","user":{"login":"mikeymckay","id":12015,"avatar_url":"https://avatars.githubusercontent.com/u/12015?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeymckay","html_url":"https://github.com/mikeymckay","followers_url":"https://api.github.com/users/mikeymckay/followers","following_url":"https://api.github.com/users/mikeymckay/following{/other_user}","gists_url":"https://api.github.com/users/mikeymckay/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeymckay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeymckay/subscriptions","organizations_url":"https://api.github.com/users/mikeymckay/orgs","repos_url":"https://api.github.com/users/mikeymckay/repos","events_url":"https://api.github.com/users/mikeymckay/events{/privacy}","received_events_url":"https://api.github.com/users/mikeymckay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-23T12:15:39Z","updated_at":"2016-06-23T12:49:27Z","closed_at":null,"body":"If I try and do a replication from a pouchdb with crypto-pouch applied it works fine. But when I then use the option:\r\n{filter:\"_view\",view:\"results\"}  // results is a view\r\nno documents are transferred.\r\nIf I replicate the encrypted db to an unencrypted db, and then do the same replication from the unencrypted db it works fine."},"comment":{"url":"https://api.github.com/repos/calvinmetcalf/crypto-pouch/issues/comments/228039537","html_url":"https://github.com/calvinmetcalf/crypto-pouch/issues/37#issuecomment-228039537","issue_url":"https://api.github.com/repos/calvinmetcalf/crypto-pouch/issues/37","id":228039537,"user":{"login":"mikeymckay","id":12015,"avatar_url":"https://avatars.githubusercontent.com/u/12015?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeymckay","html_url":"https://github.com/mikeymckay","followers_url":"https://api.github.com/users/mikeymckay/followers","following_url":"https://api.github.com/users/mikeymckay/following{/other_user}","gists_url":"https://api.github.com/users/mikeymckay/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeymckay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeymckay/subscriptions","organizations_url":"https://api.github.com/users/mikeymckay/orgs","repos_url":"https://api.github.com/users/mikeymckay/repos","events_url":"https://api.github.com/users/mikeymckay/events{/privacy}","received_events_url":"https://api.github.com/users/mikeymckay/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T12:49:27Z","updated_at":"2016-06-23T12:49:27Z","body":"If I pass in a filter function it works fine:\r\n\r\n`p.replicate.to(t,{filter: function(doc){return doc.collection === 'result'}}).catch(function(error){console.log(error)}).then(function(res){console.log(res)})`\r\n\r\n->  Object {ok: true, start_time: Thu Jun 23 2016 15:47:49 GMT+0300 (EAT), docs_read: 2, docs_written: 2, doc_write_failures: 0…}"}}
{"actor":{"display_login":"mikeymckay"}}