{"action":"opened","number":1001,"pull_request":{"url":"https://api.github.com/repos/couchbase/sync_gateway/pulls/1001","id":40839330,"html_url":"https://github.com/couchbase/sync_gateway/pull/1001","diff_url":"https://github.com/couchbase/sync_gateway/pull/1001.diff","patch_url":"https://github.com/couchbase/sync_gateway/pull/1001.patch","issue_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1001","number":1001,"state":"open","locked":false,"title":"raw ddoc feature and passing tests for sum reduce","user":{"login":"jchris","id":253,"avatar_url":"https://avatars.githubusercontent.com/u/253?v=3","gravatar_id":"","url":"https://api.github.com/users/jchris","html_url":"https://github.com/jchris","followers_url":"https://api.github.com/users/jchris/followers","following_url":"https://api.github.com/users/jchris/following{/other_user}","gists_url":"https://api.github.com/users/jchris/gists{/gist_id}","starred_url":"https://api.github.com/users/jchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchris/subscriptions","organizations_url":"https://api.github.com/users/jchris/orgs","repos_url":"https://api.github.com/users/jchris/repos","events_url":"https://api.github.com/users/jchris/events{/privacy}","received_events_url":"https://api.github.com/users/jchris/received_events","type":"User","site_admin":false},"body":"This allows users to add a design doc option `\"raw\" : true` to skip the channels wrapper in our view engine. This is only useful for admin-only views where the intent is to run reduce on the results.\r\n\r\nTo enable, have a design doc like:\r\n\r\n```javascript\r\n{\r\n  \"options\" : {\r\n    \"raw\" : true\r\n  },\r\n  \"views: { \r\n    // ...\r\n  }\r\n}\r\n```\r\n\r\nThere is another code path I didn't write that could allow reduce on the wrapped views but I don't think it's practical or necessary at this stage.\r\n\r\nThis requires the pull request at https://github.com/couchbase/sg-bucket/pull/4 to be merged","created_at":"2015-07-25T16:31:07Z","updated_at":"2015-07-25T16:31:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/couchbase/sync_gateway/pulls/1001/commits","review_comments_url":"https://api.github.com/repos/couchbase/sync_gateway/pulls/1001/comments","review_comment_url":"https://api.github.com/repos/couchbase/sync_gateway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1001/comments","statuses_url":"https://api.github.com/repos/couchbase/sync_gateway/statuses/9250be08de326319b8d94e91313e42ef70711da1","head":{"label":"jchris:raw-ddoc","ref":"raw-ddoc","sha":"9250be08de326319b8d94e91313e42ef70711da1","user":{"login":"jchris","id":253,"avatar_url":"https://avatars.githubusercontent.com/u/253?v=3","gravatar_id":"","url":"https://api.github.com/users/jchris","html_url":"https://github.com/jchris","followers_url":"https://api.github.com/users/jchris/followers","following_url":"https://api.github.com/users/jchris/following{/other_user}","gists_url":"https://api.github.com/users/jchris/gists{/gist_id}","starred_url":"https://api.github.com/users/jchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchris/subscriptions","organizations_url":"https://api.github.com/users/jchris/orgs","repos_url":"https://api.github.com/users/jchris/repos","events_url":"https://api.github.com/users/jchris/events{/privacy}","received_events_url":"https://api.github.com/users/jchris/received_events","type":"User","site_admin":false},"repo":{"id":7857175,"name":"sync_gateway","full_name":"jchris/sync_gateway","owner":{"login":"jchris","id":253,"avatar_url":"https://avatars.githubusercontent.com/u/253?v=3","gravatar_id":"","url":"https://api.github.com/users/jchris","html_url":"https://github.com/jchris","followers_url":"https://api.github.com/users/jchris/followers","following_url":"https://api.github.com/users/jchris/following{/other_user}","gists_url":"https://api.github.com/users/jchris/gists{/gist_id}","starred_url":"https://api.github.com/users/jchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchris/subscriptions","organizations_url":"https://api.github.com/users/jchris/orgs","repos_url":"https://api.github.com/users/jchris/repos","events_url":"https://api.github.com/users/jchris/events{/privacy}","received_events_url":"https://api.github.com/users/jchris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jchris/sync_gateway","description":"Couchbase Mobile in Go","fork":true,"url":"https://api.github.com/repos/jchris/sync_gateway","forks_url":"https://api.github.com/repos/jchris/sync_gateway/forks","keys_url":"https://api.github.com/repos/jchris/sync_gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jchris/sync_gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jchris/sync_gateway/teams","hooks_url":"https://api.github.com/repos/jchris/sync_gateway/hooks","issue_events_url":"https://api.github.com/repos/jchris/sync_gateway/issues/events{/number}","events_url":"https://api.github.com/repos/jchris/sync_gateway/events","assignees_url":"https://api.github.com/repos/jchris/sync_gateway/assignees{/user}","branches_url":"https://api.github.com/repos/jchris/sync_gateway/branches{/branch}","tags_url":"https://api.github.com/repos/jchris/sync_gateway/tags","blobs_url":"https://api.github.com/repos/jchris/sync_gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jchris/sync_gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jchris/sync_gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/jchris/sync_gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jchris/sync_gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/jchris/sync_gateway/languages","stargazers_url":"https://api.github.com/repos/jchris/sync_gateway/stargazers","contributors_url":"https://api.github.com/repos/jchris/sync_gateway/contributors","subscribers_url":"https://api.github.com/repos/jchris/sync_gateway/subscribers","subscription_url":"https://api.github.com/repos/jchris/sync_gateway/subscription","commits_url":"https://api.github.com/repos/jchris/sync_gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/jchris/sync_gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/jchris/sync_gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/jchris/sync_gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/jchris/sync_gateway/contents/{+path}","compare_url":"https://api.github.com/repos/jchris/sync_gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jchris/sync_gateway/merges","archive_url":"https://api.github.com/repos/jchris/sync_gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jchris/sync_gateway/downloads","issues_url":"https://api.github.com/repos/jchris/sync_gateway/issues{/number}","pulls_url":"https://api.github.com/repos/jchris/sync_gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/jchris/sync_gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/jchris/sync_gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jchris/sync_gateway/labels{/name}","releases_url":"https://api.github.com/repos/jchris/sync_gateway/releases{/id}","created_at":"2013-01-27T19:54:57Z","updated_at":"2015-02-18T22:55:33Z","pushed_at":"2015-07-25T16:26:55Z","git_url":"git://github.com/jchris/sync_gateway.git","ssh_url":"git@github.com:jchris/sync_gateway.git","clone_url":"https://github.com/jchris/sync_gateway.git","svn_url":"https://github.com/jchris/sync_gateway","homepage":"","size":8528,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"couchbase:master","ref":"master","sha":"db5aec05fa8bfeae8b6de87d4400665a7792dcbe","user":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"repo":{"id":6082996,"name":"sync_gateway","full_name":"couchbase/sync_gateway","owner":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/couchbase/sync_gateway","description":"Connects Couchbase Lite to Couchbase Server","fork":false,"url":"https://api.github.com/repos/couchbase/sync_gateway","forks_url":"https://api.github.com/repos/couchbase/sync_gateway/forks","keys_url":"https://api.github.com/repos/couchbase/sync_gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/couchbase/sync_gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/couchbase/sync_gateway/teams","hooks_url":"https://api.github.com/repos/couchbase/sync_gateway/hooks","issue_events_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/events{/number}","events_url":"https://api.github.com/repos/couchbase/sync_gateway/events","assignees_url":"https://api.github.com/repos/couchbase/sync_gateway/assignees{/user}","branches_url":"https://api.github.com/repos/couchbase/sync_gateway/branches{/branch}","tags_url":"https://api.github.com/repos/couchbase/sync_gateway/tags","blobs_url":"https://api.github.com/repos/couchbase/sync_gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/couchbase/sync_gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/couchbase/sync_gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/couchbase/sync_gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/couchbase/sync_gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/couchbase/sync_gateway/languages","stargazers_url":"https://api.github.com/repos/couchbase/sync_gateway/stargazers","contributors_url":"https://api.github.com/repos/couchbase/sync_gateway/contributors","subscribers_url":"https://api.github.com/repos/couchbase/sync_gateway/subscribers","subscription_url":"https://api.github.com/repos/couchbase/sync_gateway/subscription","commits_url":"https://api.github.com/repos/couchbase/sync_gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/couchbase/sync_gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/couchbase/sync_gateway/contents/{+path}","compare_url":"https://api.github.com/repos/couchbase/sync_gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/couchbase/sync_gateway/merges","archive_url":"https://api.github.com/repos/couchbase/sync_gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/couchbase/sync_gateway/downloads","issues_url":"https://api.github.com/repos/couchbase/sync_gateway/issues{/number}","pulls_url":"https://api.github.com/repos/couchbase/sync_gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/couchbase/sync_gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/couchbase/sync_gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/labels{/name}","releases_url":"https://api.github.com/repos/couchbase/sync_gateway/releases{/id}","created_at":"2012-10-04T22:25:43Z","updated_at":"2015-07-24T03:34:17Z","pushed_at":"2015-07-25T16:31:08Z","git_url":"git://github.com/couchbase/sync_gateway.git","ssh_url":"git@github.com:couchbase/sync_gateway.git","clone_url":"https://github.com/couchbase/sync_gateway.git","svn_url":"https://github.com/couchbase/sync_gateway","homepage":"","size":15848,"stargazers_count":176,"watchers_count":176,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":209,"forks":61,"open_issues":209,"watchers":176,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/couchbase/sync_gateway/pulls/1001"},"html":{"href":"https://github.com/couchbase/sync_gateway/pull/1001"},"issue":{"href":"https://api.github.com/repos/couchbase/sync_gateway/issues/1001"},"comments":{"href":"https://api.github.com/repos/couchbase/sync_gateway/issues/1001/comments"},"review_comments":{"href":"https://api.github.com/repos/couchbase/sync_gateway/pulls/1001/comments"},"review_comment":{"href":"https://api.github.com/repos/couchbase/sync_gateway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/couchbase/sync_gateway/pulls/1001/commits"},"statuses":{"href":"https://api.github.com/repos/couchbase/sync_gateway/statuses/9250be08de326319b8d94e91313e42ef70711da1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":48,"deletions":6,"changed_files":3}}