{"action":"opened","issue":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/2288","repository_url":"https://api.github.com/repos/medic/medic-webapp","labels_url":"https://api.github.com/repos/medic/medic-webapp/issues/2288/labels{/name}","comments_url":"https://api.github.com/repos/medic/medic-webapp/issues/2288/comments","events_url":"https://api.github.com/repos/medic/medic-webapp/issues/2288/events","html_url":"https://github.com/medic/medic-webapp/issues/2288","id":153879362,"number":2288,"title":"Pouch doesn't update seq unless something has changed","user":{"login":"garethbowen","id":2064938,"avatar_url":"https://avatars.githubusercontent.com/u/2064938?v=3","gravatar_id":"","url":"https://api.github.com/users/garethbowen","html_url":"https://github.com/garethbowen","followers_url":"https://api.github.com/users/garethbowen/followers","following_url":"https://api.github.com/users/garethbowen/following{/other_user}","gists_url":"https://api.github.com/users/garethbowen/gists{/gist_id}","starred_url":"https://api.github.com/users/garethbowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethbowen/subscriptions","organizations_url":"https://api.github.com/users/garethbowen/orgs","repos_url":"https://api.github.com/users/garethbowen/repos","events_url":"https://api.github.com/users/garethbowen/events{/privacy}","received_events_url":"https://api.github.com/users/garethbowen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/medic/medic-webapp/labels/1%20-%20Scheduled","name":"1 - Scheduled","color":"bfd4d2"},{"url":"https://api.github.com/repos/medic/medic-webapp/labels/Performance","name":"Performance","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"garethbowen","id":2064938,"avatar_url":"https://avatars.githubusercontent.com/u/2064938?v=3","gravatar_id":"","url":"https://api.github.com/users/garethbowen","html_url":"https://github.com/garethbowen","followers_url":"https://api.github.com/users/garethbowen/followers","following_url":"https://api.github.com/users/garethbowen/following{/other_user}","gists_url":"https://api.github.com/users/garethbowen/gists{/gist_id}","starred_url":"https://api.github.com/users/garethbowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethbowen/subscriptions","organizations_url":"https://api.github.com/users/garethbowen/orgs","repos_url":"https://api.github.com/users/garethbowen/repos","events_url":"https://api.github.com/users/garethbowen/events{/privacy}","received_events_url":"https://api.github.com/users/garethbowen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/medic/medic-webapp/milestones/51","html_url":"https://github.com/medic/medic-webapp/milestones/May%202nd%20-%20May%2016th:%20SMS%20Gateway,%20postgres,%20bulk%20delete","labels_url":"https://api.github.com/repos/medic/medic-webapp/milestones/51/labels","id":1735116,"number":51,"title":"May 2nd - May 16th: SMS Gateway, postgres, bulk delete","description":"Iteration 2016-18","creator":{"login":"garethbowen","id":2064938,"avatar_url":"https://avatars.githubusercontent.com/u/2064938?v=3","gravatar_id":"","url":"https://api.github.com/users/garethbowen","html_url":"https://github.com/garethbowen","followers_url":"https://api.github.com/users/garethbowen/followers","following_url":"https://api.github.com/users/garethbowen/following{/other_user}","gists_url":"https://api.github.com/users/garethbowen/gists{/gist_id}","starred_url":"https://api.github.com/users/garethbowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethbowen/subscriptions","organizations_url":"https://api.github.com/users/garethbowen/orgs","repos_url":"https://api.github.com/users/garethbowen/repos","events_url":"https://api.github.com/users/garethbowen/events{/privacy}","received_events_url":"https://api.github.com/users/garethbowen/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":11,"state":"open","created_at":"2016-04-27T22:08:09Z","updated_at":"2016-05-09T21:57:03Z","due_on":"2016-05-15T04:00:00Z","closed_at":null},"comments":0,"created_at":"2016-05-09T21:57:03Z","updated_at":"2016-05-09T21:57:03Z","closed_at":null,"body":"If we get a changes response with no results the local seq isn't updated which means subsequent changes start from the previous seq. This is a problem because filtering the changes feed is expensive so we only want to do it once per user per doc.\r\n\r\nThis happens frequently for us because the filter excludes irrelevant docs from CHPs which happens to be most docs.\r\n\r\nA workaround is to make a minimal change to a doc that passes the filter so all users receive a change, but this creates unnecessary downloads.\r\n\r\nInvestigate the issue and submit a PR to pouch as required."}}