{"action":"created","comment":{"url":"https://api.github.com/repos/cozy/cozy-stack/pulls/comments/172894205","pull_request_review_id":101989716,"id":172894205,"diff_hunk":"@@ -114,6 +114,8 @@ func ProxyBulkDocs(db Database, doctype string, req *http.Request) (*httputil.Re\n \t\t\t\t\tvar event string\n \t\t\t\t\tif doc.Rev() == \"\" {\n \t\t\t\t\t\tevent = realtime.EventCreate\n+\t\t\t\t\t} else if doc.Get(\"_deleted\") == true {","path":"pkg/couchdb/proxy.go","position":4,"original_position":4,"commit_id":"88cdb3d5d46b0b8996acb2dd6be799294c841958","original_commit_id":"88cdb3d5d46b0b8996acb2dd6be799294c841958","user":{"login":"ptbrowne","id":465582,"avatar_url":"https://avatars1.githubusercontent.com/u/465582?v=4","gravatar_id":"","url":"https://api.github.com/users/ptbrowne","html_url":"https://github.com/ptbrowne","followers_url":"https://api.github.com/users/ptbrowne/followers","following_url":"https://api.github.com/users/ptbrowne/following{/other_user}","gists_url":"https://api.github.com/users/ptbrowne/gists{/gist_id}","starred_url":"https://api.github.com/users/ptbrowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptbrowne/subscriptions","organizations_url":"https://api.github.com/users/ptbrowne/orgs","repos_url":"https://api.github.com/users/ptbrowne/repos","events_url":"https://api.github.com/users/ptbrowne/events{/privacy}","received_events_url":"https://api.github.com/users/ptbrowne/received_events","type":"User","site_admin":false},"body":"@nono Why  could the problem be here ?","created_at":"2018-03-07T16:08:18Z","updated_at":"2018-03-07T16:08:18Z","html_url":"https://github.com/cozy/cozy-stack/pull/1272#discussion_r172894205","pull_request_url":"https://api.github.com/repos/cozy/cozy-stack/pulls/1272","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/comments/172894205"},"html":{"href":"https://github.com/cozy/cozy-stack/pull/1272#discussion_r172894205"},"pull_request":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/1272"}},"in_reply_to_id":172879867},"pull_request":{"url":"https://api.github.com/repos/cozy/cozy-stack/pulls/1272","id":173485148,"html_url":"https://github.com/cozy/cozy-stack/pull/1272","diff_url":"https://github.com/cozy/cozy-stack/pull/1272.diff","patch_url":"https://github.com/cozy/cozy-stack/pull/1272.patch","issue_url":"https://api.github.com/repos/cozy/cozy-stack/issues/1272","number":1272,"state":"open","locked":false,"title":"feat: event delete is correctly broadcasted","user":{"login":"ptbrowne","id":465582,"avatar_url":"https://avatars1.githubusercontent.com/u/465582?v=4","gravatar_id":"","url":"https://api.github.com/users/ptbrowne","html_url":"https://github.com/ptbrowne","followers_url":"https://api.github.com/users/ptbrowne/followers","following_url":"https://api.github.com/users/ptbrowne/following{/other_user}","gists_url":"https://api.github.com/users/ptbrowne/gists{/gist_id}","starred_url":"https://api.github.com/users/ptbrowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptbrowne/subscriptions","organizations_url":"https://api.github.com/users/ptbrowne/orgs","repos_url":"https://api.github.com/users/ptbrowne/repos","events_url":"https://api.github.com/users/ptbrowne/events{/privacy}","received_events_url":"https://api.github.com/users/ptbrowne/received_events","type":"User","site_admin":false},"body":"Deleting via `_bulk_docs` would not send realtime events as\r\ndeletions but as updates. Here we check if `_deleted` is set\r\nto true to correctly broadcast the Delete event.","created_at":"2018-03-07T15:26:50Z","updated_at":"2018-03-07T16:08:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57eaf103418c65c3a461e12414aba2d9365ff75b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cozy/cozy-stack/pulls/1272/commits","review_comments_url":"https://api.github.com/repos/cozy/cozy-stack/pulls/1272/comments","review_comment_url":"https://api.github.com/repos/cozy/cozy-stack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cozy/cozy-stack/issues/1272/comments","statuses_url":"https://api.github.com/repos/cozy/cozy-stack/statuses/88cdb3d5d46b0b8996acb2dd6be799294c841958","head":{"label":"cozy:delete-event","ref":"delete-event","sha":"88cdb3d5d46b0b8996acb2dd6be799294c841958","user":{"login":"cozy","id":7690525,"avatar_url":"https://avatars0.githubusercontent.com/u/7690525?v=4","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"repo":{"id":63433838,"name":"cozy-stack","full_name":"cozy/cozy-stack","owner":{"login":"cozy","id":7690525,"avatar_url":"https://avatars0.githubusercontent.com/u/7690525?v=4","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cozy/cozy-stack","description":"Simple, Versatile, Yours","fork":false,"url":"https://api.github.com/repos/cozy/cozy-stack","forks_url":"https://api.github.com/repos/cozy/cozy-stack/forks","keys_url":"https://api.github.com/repos/cozy/cozy-stack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cozy/cozy-stack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cozy/cozy-stack/teams","hooks_url":"https://api.github.com/repos/cozy/cozy-stack/hooks","issue_events_url":"https://api.github.com/repos/cozy/cozy-stack/issues/events{/number}","events_url":"https://api.github.com/repos/cozy/cozy-stack/events","assignees_url":"https://api.github.com/repos/cozy/cozy-stack/assignees{/user}","branches_url":"https://api.github.com/repos/cozy/cozy-stack/branches{/branch}","tags_url":"https://api.github.com/repos/cozy/cozy-stack/tags","blobs_url":"https://api.github.com/repos/cozy/cozy-stack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cozy/cozy-stack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cozy/cozy-stack/git/refs{/sha}","trees_url":"https://api.github.com/repos/cozy/cozy-stack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cozy/cozy-stack/statuses/{sha}","languages_url":"https://api.github.com/repos/cozy/cozy-stack/languages","stargazers_url":"https://api.github.com/repos/cozy/cozy-stack/stargazers","contributors_url":"https://api.github.com/repos/cozy/cozy-stack/contributors","subscribers_url":"https://api.github.com/repos/cozy/cozy-stack/subscribers","subscription_url":"https://api.github.com/repos/cozy/cozy-stack/subscription","commits_url":"https://api.github.com/repos/cozy/cozy-stack/commits{/sha}","git_commits_url":"https://api.github.com/repos/cozy/cozy-stack/git/commits{/sha}","comments_url":"https://api.github.com/repos/cozy/cozy-stack/comments{/number}","issue_comment_url":"https://api.github.com/repos/cozy/cozy-stack/issues/comments{/number}","contents_url":"https://api.github.com/repos/cozy/cozy-stack/contents/{+path}","compare_url":"https://api.github.com/repos/cozy/cozy-stack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cozy/cozy-stack/merges","archive_url":"https://api.github.com/repos/cozy/cozy-stack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cozy/cozy-stack/downloads","issues_url":"https://api.github.com/repos/cozy/cozy-stack/issues{/number}","pulls_url":"https://api.github.com/repos/cozy/cozy-stack/pulls{/number}","milestones_url":"https://api.github.com/repos/cozy/cozy-stack/milestones{/number}","notifications_url":"https://api.github.com/repos/cozy/cozy-stack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cozy/cozy-stack/labels{/name}","releases_url":"https://api.github.com/repos/cozy/cozy-stack/releases{/id}","deployments_url":"https://api.github.com/repos/cozy/cozy-stack/deployments","created_at":"2016-07-15T15:54:30Z","updated_at":"2018-03-06T09:28:22Z","pushed_at":"2018-03-07T15:26:51Z","git_url":"git://github.com/cozy/cozy-stack.git","ssh_url":"git@github.com:cozy/cozy-stack.git","clone_url":"https://github.com/cozy/cozy-stack.git","svn_url":"https://github.com/cozy/cozy-stack","homepage":"https://cozy.github.io/cozy-stack/","size":44183,"stargazers_count":291,"watchers_count":291,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":63,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":63,"open_issues":8,"watchers":291,"default_branch":"master"}},"base":{"label":"cozy:master","ref":"master","sha":"e535b8a2e9d8e6403938163276b35eae5423cc65","user":{"login":"cozy","id":7690525,"avatar_url":"https://avatars0.githubusercontent.com/u/7690525?v=4","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"repo":{"id":63433838,"name":"cozy-stack","full_name":"cozy/cozy-stack","owner":{"login":"cozy","id":7690525,"avatar_url":"https://avatars0.githubusercontent.com/u/7690525?v=4","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cozy/cozy-stack","description":"Simple, Versatile, Yours","fork":false,"url":"https://api.github.com/repos/cozy/cozy-stack","forks_url":"https://api.github.com/repos/cozy/cozy-stack/forks","keys_url":"https://api.github.com/repos/cozy/cozy-stack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cozy/cozy-stack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cozy/cozy-stack/teams","hooks_url":"https://api.github.com/repos/cozy/cozy-stack/hooks","issue_events_url":"https://api.github.com/repos/cozy/cozy-stack/issues/events{/number}","events_url":"https://api.github.com/repos/cozy/cozy-stack/events","assignees_url":"https://api.github.com/repos/cozy/cozy-stack/assignees{/user}","branches_url":"https://api.github.com/repos/cozy/cozy-stack/branches{/branch}","tags_url":"https://api.github.com/repos/cozy/cozy-stack/tags","blobs_url":"https://api.github.com/repos/cozy/cozy-stack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cozy/cozy-stack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cozy/cozy-stack/git/refs{/sha}","trees_url":"https://api.github.com/repos/cozy/cozy-stack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cozy/cozy-stack/statuses/{sha}","languages_url":"https://api.github.com/repos/cozy/cozy-stack/languages","stargazers_url":"https://api.github.com/repos/cozy/cozy-stack/stargazers","contributors_url":"https://api.github.com/repos/cozy/cozy-stack/contributors","subscribers_url":"https://api.github.com/repos/cozy/cozy-stack/subscribers","subscription_url":"https://api.github.com/repos/cozy/cozy-stack/subscription","commits_url":"https://api.github.com/repos/cozy/cozy-stack/commits{/sha}","git_commits_url":"https://api.github.com/repos/cozy/cozy-stack/git/commits{/sha}","comments_url":"https://api.github.com/repos/cozy/cozy-stack/comments{/number}","issue_comment_url":"https://api.github.com/repos/cozy/cozy-stack/issues/comments{/number}","contents_url":"https://api.github.com/repos/cozy/cozy-stack/contents/{+path}","compare_url":"https://api.github.com/repos/cozy/cozy-stack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cozy/cozy-stack/merges","archive_url":"https://api.github.com/repos/cozy/cozy-stack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cozy/cozy-stack/downloads","issues_url":"https://api.github.com/repos/cozy/cozy-stack/issues{/number}","pulls_url":"https://api.github.com/repos/cozy/cozy-stack/pulls{/number}","milestones_url":"https://api.github.com/repos/cozy/cozy-stack/milestones{/number}","notifications_url":"https://api.github.com/repos/cozy/cozy-stack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cozy/cozy-stack/labels{/name}","releases_url":"https://api.github.com/repos/cozy/cozy-stack/releases{/id}","deployments_url":"https://api.github.com/repos/cozy/cozy-stack/deployments","created_at":"2016-07-15T15:54:30Z","updated_at":"2018-03-06T09:28:22Z","pushed_at":"2018-03-07T15:26:51Z","git_url":"git://github.com/cozy/cozy-stack.git","ssh_url":"git@github.com:cozy/cozy-stack.git","clone_url":"https://github.com/cozy/cozy-stack.git","svn_url":"https://github.com/cozy/cozy-stack","homepage":"https://cozy.github.io/cozy-stack/","size":44183,"stargazers_count":291,"watchers_count":291,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":63,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":63,"open_issues":8,"watchers":291,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/1272"},"html":{"href":"https://github.com/cozy/cozy-stack/pull/1272"},"issue":{"href":"https://api.github.com/repos/cozy/cozy-stack/issues/1272"},"comments":{"href":"https://api.github.com/repos/cozy/cozy-stack/issues/1272/comments"},"review_comments":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/1272/comments"},"review_comment":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/1272/commits"},"statuses":{"href":"https://api.github.com/repos/cozy/cozy-stack/statuses/88cdb3d5d46b0b8996acb2dd6be799294c841958"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ptbrowne"}}