{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/cloudant-labs/dreyfus/pulls/7","id":73130196,"html_url":"https://github.com/cloudant-labs/dreyfus/pull/7","diff_url":"https://github.com/cloudant-labs/dreyfus/pull/7.diff","patch_url":"https://github.com/cloudant-labs/dreyfus/pull/7.patch","issue_url":"https://api.github.com/repos/cloudant-labs/dreyfus/issues/7","number":7,"state":"open","locked":false,"title":"Fix http handler response","user":{"login":"eiri","id":70542,"avatar_url":"https://avatars.githubusercontent.com/u/70542?v=3","gravatar_id":"","url":"https://api.github.com/users/eiri","html_url":"https://github.com/eiri","followers_url":"https://api.github.com/users/eiri/followers","following_url":"https://api.github.com/users/eiri/following{/other_user}","gists_url":"https://api.github.com/users/eiri/gists{/gist_id}","starred_url":"https://api.github.com/users/eiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eiri/subscriptions","organizations_url":"https://api.github.com/users/eiri/orgs","repos_url":"https://api.github.com/users/eiri/repos","events_url":"https://api.github.com/users/eiri/events{/privacy}","received_events_url":"https://api.github.com/users/eiri/received_events","type":"User","site_admin":false},"body":"CouchDB's `chttpd:handle_request/1` expects to receive the response object from the end-point handlers so it can pass it to `after_request` epi hook. Function `handle_search_req` was returning `ok` after calling `couch_stats:update_histogram/2`, leading to chttpd's handler crash.\r\n","created_at":"2016-06-08T22:18:36Z","updated_at":"2016-06-08T22:18:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cdb3d1ae13fa5a543f53a7b837bae3cfb36e24d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudant-labs/dreyfus/pulls/7/commits","review_comments_url":"https://api.github.com/repos/cloudant-labs/dreyfus/pulls/7/comments","review_comment_url":"https://api.github.com/repos/cloudant-labs/dreyfus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudant-labs/dreyfus/issues/7/comments","statuses_url":"https://api.github.com/repos/cloudant-labs/dreyfus/statuses/fb8c85f6a9d34028d2adea12c6e999c585da50b5","head":{"label":"cloudant-labs:67924-fix-handlers-response","ref":"67924-fix-handlers-response","sha":"fb8c85f6a9d34028d2adea12c6e999c585da50b5","user":{"login":"cloudant-labs","id":1815157,"avatar_url":"https://avatars.githubusercontent.com/u/1815157?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant-labs","html_url":"https://github.com/cloudant-labs","followers_url":"https://api.github.com/users/cloudant-labs/followers","following_url":"https://api.github.com/users/cloudant-labs/following{/other_user}","gists_url":"https://api.github.com/users/cloudant-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant-labs/subscriptions","organizations_url":"https://api.github.com/users/cloudant-labs/orgs","repos_url":"https://api.github.com/users/cloudant-labs/repos","events_url":"https://api.github.com/users/cloudant-labs/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":39842021,"name":"dreyfus","full_name":"cloudant-labs/dreyfus","owner":{"login":"cloudant-labs","id":1815157,"avatar_url":"https://avatars.githubusercontent.com/u/1815157?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant-labs","html_url":"https://github.com/cloudant-labs","followers_url":"https://api.github.com/users/cloudant-labs/followers","following_url":"https://api.github.com/users/cloudant-labs/following{/other_user}","gists_url":"https://api.github.com/users/cloudant-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant-labs/subscriptions","organizations_url":"https://api.github.com/users/cloudant-labs/orgs","repos_url":"https://api.github.com/users/cloudant-labs/repos","events_url":"https://api.github.com/users/cloudant-labs/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudant-labs/dreyfus","description":"Dreyfus manages Clouseau nodes to deliver full-text search features","fork":false,"url":"https://api.github.com/repos/cloudant-labs/dreyfus","forks_url":"https://api.github.com/repos/cloudant-labs/dreyfus/forks","keys_url":"https://api.github.com/repos/cloudant-labs/dreyfus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant-labs/dreyfus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant-labs/dreyfus/teams","hooks_url":"https://api.github.com/repos/cloudant-labs/dreyfus/hooks","issue_events_url":"https://api.github.com/repos/cloudant-labs/dreyfus/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant-labs/dreyfus/events","assignees_url":"https://api.github.com/repos/cloudant-labs/dreyfus/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant-labs/dreyfus/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant-labs/dreyfus/tags","blobs_url":"https://api.github.com/repos/cloudant-labs/dreyfus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant-labs/dreyfus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant-labs/dreyfus/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant-labs/dreyfus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant-labs/dreyfus/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant-labs/dreyfus/languages","stargazers_url":"https://api.github.com/repos/cloudant-labs/dreyfus/stargazers","contributors_url":"https://api.github.com/repos/cloudant-labs/dreyfus/contributors","subscribers_url":"https://api.github.com/repos/cloudant-labs/dreyfus/subscribers","subscription_url":"https://api.github.com/repos/cloudant-labs/dreyfus/subscription","commits_url":"https://api.github.com/repos/cloudant-labs/dreyfus/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant-labs/dreyfus/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant-labs/dreyfus/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant-labs/dreyfus/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant-labs/dreyfus/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant-labs/dreyfus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant-labs/dreyfus/merges","archive_url":"https://api.github.com/repos/cloudant-labs/dreyfus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant-labs/dreyfus/downloads","issues_url":"https://api.github.com/repos/cloudant-labs/dreyfus/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant-labs/dreyfus/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant-labs/dreyfus/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant-labs/dreyfus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant-labs/dreyfus/labels{/name}","releases_url":"https://api.github.com/repos/cloudant-labs/dreyfus/releases{/id}","deployments_url":"https://api.github.com/repos/cloudant-labs/dreyfus/deployments","created_at":"2015-07-28T15:25:31Z","updated_at":"2016-05-29T00:26:41Z","pushed_at":"2016-06-08T22:18:36Z","git_url":"git://github.com/cloudant-labs/dreyfus.git","ssh_url":"git@github.com:cloudant-labs/dreyfus.git","clone_url":"https://github.com/cloudant-labs/dreyfus.git","svn_url":"https://github.com/cloudant-labs/dreyfus","homepage":null,"size":40,"stargazers_count":24,"watchers_count":24,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":24,"default_branch":"master"}},"base":{"label":"cloudant-labs:master","ref":"master","sha":"95df9845d70ee4a89978a505b2c991e82d0768df","user":{"login":"cloudant-labs","id":1815157,"avatar_url":"https://avatars.githubusercontent.com/u/1815157?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant-labs","html_url":"https://github.com/cloudant-labs","followers_url":"https://api.github.com/users/cloudant-labs/followers","following_url":"https://api.github.com/users/cloudant-labs/following{/other_user}","gists_url":"https://api.github.com/users/cloudant-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant-labs/subscriptions","organizations_url":"https://api.github.com/users/cloudant-labs/orgs","repos_url":"https://api.github.com/users/cloudant-labs/repos","events_url":"https://api.github.com/users/cloudant-labs/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":39842021,"name":"dreyfus","full_name":"cloudant-labs/dreyfus","owner":{"login":"cloudant-labs","id":1815157,"avatar_url":"https://avatars.githubusercontent.com/u/1815157?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant-labs","html_url":"https://github.com/cloudant-labs","followers_url":"https://api.github.com/users/cloudant-labs/followers","following_url":"https://api.github.com/users/cloudant-labs/following{/other_user}","gists_url":"https://api.github.com/users/cloudant-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant-labs/subscriptions","organizations_url":"https://api.github.com/users/cloudant-labs/orgs","repos_url":"https://api.github.com/users/cloudant-labs/repos","events_url":"https://api.github.com/users/cloudant-labs/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudant-labs/dreyfus","description":"Dreyfus manages Clouseau nodes to deliver full-text search features","fork":false,"url":"https://api.github.com/repos/cloudant-labs/dreyfus","forks_url":"https://api.github.com/repos/cloudant-labs/dreyfus/forks","keys_url":"https://api.github.com/repos/cloudant-labs/dreyfus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant-labs/dreyfus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant-labs/dreyfus/teams","hooks_url":"https://api.github.com/repos/cloudant-labs/dreyfus/hooks","issue_events_url":"https://api.github.com/repos/cloudant-labs/dreyfus/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant-labs/dreyfus/events","assignees_url":"https://api.github.com/repos/cloudant-labs/dreyfus/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant-labs/dreyfus/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant-labs/dreyfus/tags","blobs_url":"https://api.github.com/repos/cloudant-labs/dreyfus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant-labs/dreyfus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant-labs/dreyfus/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant-labs/dreyfus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant-labs/dreyfus/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant-labs/dreyfus/languages","stargazers_url":"https://api.github.com/repos/cloudant-labs/dreyfus/stargazers","contributors_url":"https://api.github.com/repos/cloudant-labs/dreyfus/contributors","subscribers_url":"https://api.github.com/repos/cloudant-labs/dreyfus/subscribers","subscription_url":"https://api.github.com/repos/cloudant-labs/dreyfus/subscription","commits_url":"https://api.github.com/repos/cloudant-labs/dreyfus/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant-labs/dreyfus/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant-labs/dreyfus/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant-labs/dreyfus/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant-labs/dreyfus/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant-labs/dreyfus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant-labs/dreyfus/merges","archive_url":"https://api.github.com/repos/cloudant-labs/dreyfus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant-labs/dreyfus/downloads","issues_url":"https://api.github.com/repos/cloudant-labs/dreyfus/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant-labs/dreyfus/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant-labs/dreyfus/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant-labs/dreyfus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant-labs/dreyfus/labels{/name}","releases_url":"https://api.github.com/repos/cloudant-labs/dreyfus/releases{/id}","deployments_url":"https://api.github.com/repos/cloudant-labs/dreyfus/deployments","created_at":"2015-07-28T15:25:31Z","updated_at":"2016-05-29T00:26:41Z","pushed_at":"2016-06-08T22:18:36Z","git_url":"git://github.com/cloudant-labs/dreyfus.git","ssh_url":"git@github.com:cloudant-labs/dreyfus.git","clone_url":"https://github.com/cloudant-labs/dreyfus.git","svn_url":"https://github.com/cloudant-labs/dreyfus","homepage":null,"size":40,"stargazers_count":24,"watchers_count":24,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudant-labs/dreyfus/pulls/7"},"html":{"href":"https://github.com/cloudant-labs/dreyfus/pull/7"},"issue":{"href":"https://api.github.com/repos/cloudant-labs/dreyfus/issues/7"},"comments":{"href":"https://api.github.com/repos/cloudant-labs/dreyfus/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudant-labs/dreyfus/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudant-labs/dreyfus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudant-labs/dreyfus/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/cloudant-labs/dreyfus/statuses/fb8c85f6a9d34028d2adea12c6e999c585da50b5"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":9,"deletions":8,"changed_files":1}}
{"actor":{"display_login":"eiri"}}