{"action":"created","issue":{"url":"https://api.github.com/repos/zulip/zulip/issues/745","repository_url":"https://api.github.com/repos/zulip/zulip","labels_url":"https://api.github.com/repos/zulip/zulip/issues/745/labels{/name}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/745/comments","events_url":"https://api.github.com/repos/zulip/zulip/issues/745/events","html_url":"https://github.com/zulip/zulip/pull/745","id":152687370,"number":745,"title":"Add feature to mark all in stream as read with mouse (Resolves #736).","user":{"login":"phansen01","id":12517033,"avatar_url":"https://avatars.githubusercontent.com/u/12517033?v=3","gravatar_id":"","url":"https://api.github.com/users/phansen01","html_url":"https://github.com/phansen01","followers_url":"https://api.github.com/users/phansen01/followers","following_url":"https://api.github.com/users/phansen01/following{/other_user}","gists_url":"https://api.github.com/users/phansen01/gists{/gist_id}","starred_url":"https://api.github.com/users/phansen01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phansen01/subscriptions","organizations_url":"https://api.github.com/users/phansen01/orgs","repos_url":"https://api.github.com/users/phansen01/repos","events_url":"https://api.github.com/users/phansen01/events{/privacy}","received_events_url":"https://api.github.com/users/phansen01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-05-03T02:28:28Z","updated_at":"2016-05-06T19:37:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zulip/zulip/pulls/745","html_url":"https://github.com/zulip/zulip/pull/745","diff_url":"https://github.com/zulip/zulip/pull/745.diff","patch_url":"https://github.com/zulip/zulip/pull/745.patch"},"body":"The test added in `test_unread.py` might be more roundabout than it could be; I'd be happy to modify it if necessary. "},"comment":{"url":"https://api.github.com/repos/zulip/zulip/issues/comments/217539106","html_url":"https://github.com/zulip/zulip/pull/745#issuecomment-217539106","issue_url":"https://api.github.com/repos/zulip/zulip/issues/745","id":217539106,"user":{"login":"phansen01","id":12517033,"avatar_url":"https://avatars.githubusercontent.com/u/12517033?v=3","gravatar_id":"","url":"https://api.github.com/users/phansen01","html_url":"https://github.com/phansen01","followers_url":"https://api.github.com/users/phansen01/followers","following_url":"https://api.github.com/users/phansen01/following{/other_user}","gists_url":"https://api.github.com/users/phansen01/gists{/gist_id}","starred_url":"https://api.github.com/users/phansen01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phansen01/subscriptions","organizations_url":"https://api.github.com/users/phansen01/orgs","repos_url":"https://api.github.com/users/phansen01/repos","events_url":"https://api.github.com/users/phansen01/events{/privacy}","received_events_url":"https://api.github.com/users/phansen01/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T19:37:17Z","updated_at":"2016-05-06T19:37:17Z","body":"For `_.each`, it looks like `return` is equivalent to `continue` in a for-loop; I think the behavior is actually correct. \r\n\r\nIt looks like the actual bug was that msgs was a UserMessages object, and so when I did `msgs.values('id')` I was getting the id of the UserMessages object and not the id of the messages themselves. Changing this to `msgs.values('message__id')` appears to have done the trick (which I had already done before and I'm not sure why I changed it 😐)"}}