{"action":"closed","number":21,"pull_request":{"url":"https://api.github.com/repos/MRN-Code/nodeapi/pulls/21","id":43609958,"html_url":"https://github.com/MRN-Code/nodeapi/pull/21","diff_url":"https://github.com/MRN-Code/nodeapi/pull/21.diff","patch_url":"https://github.com/MRN-Code/nodeapi/pull/21.patch","issue_url":"https://api.github.com/repos/MRN-Code/nodeapi/issues/21","number":21,"state":"closed","locked":false,"title":"Coinstac consortia","user":{"login":"dylancwood","id":5280961,"avatar_url":"https://avatars.githubusercontent.com/u/5280961?v=3","gravatar_id":"","url":"https://api.github.com/users/dylancwood","html_url":"https://github.com/dylancwood","followers_url":"https://api.github.com/users/dylancwood/followers","following_url":"https://api.github.com/users/dylancwood/following{/other_user}","gists_url":"https://api.github.com/users/dylancwood/gists{/gist_id}","starred_url":"https://api.github.com/users/dylancwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylancwood/subscriptions","organizations_url":"https://api.github.com/users/dylancwood/orgs","repos_url":"https://api.github.com/users/dylancwood/repos","events_url":"https://api.github.com/users/dylancwood/events{/privacy}","received_events_url":"https://api.github.com/users/dylancwood/received_events","type":"User","site_admin":false},"body":"This branch is an extension of the coinstac-merge branch, which is also currently under review (#20). I therefore suggest waiting until #20 has been merged before reviewing this PR.\r\n\r\n# Discussion\r\n\r\n1. COINSTAC utilizes pouchdb for storing consortia metadata and analysis results. Eventually, these pouchdb clients will connect to a CouchDB instance, but they just write to a temp file for now to keep development setup simple. **In order for this to work on your dev server, run `mkdir /tmp/coinstac-pouchdb`**\r\n\r\n1. This PR also adds a _mocks/_ directory in _lib/_. The file at _lib/mocks/mock-consortia.json_ contains stub data to be inserted into the consortiaMeta database if there are no consortia in it to begin with. The same file is used to stub some consortia in the tests. I'm not sure if using the same stubs file for tests and   initial data seeding is a good idea. \r\n\r\n1. houchdb is a hapi-pouchdb-plugin that I would like to publish to NPM some day soon (hence the strange name).","created_at":"2015-08-28T09:37:36Z","updated_at":"2015-09-04T17:16:29Z","closed_at":"2015-09-04T17:16:29Z","merged_at":"2015-09-04T17:16:29Z","merge_commit_sha":"6e54aa3217ad2c3b71a907763d6935f7c2299f68","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MRN-Code/nodeapi/pulls/21/commits","review_comments_url":"https://api.github.com/repos/MRN-Code/nodeapi/pulls/21/comments","review_comment_url":"https://api.github.com/repos/MRN-Code/nodeapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MRN-Code/nodeapi/issues/21/comments","statuses_url":"https://api.github.com/repos/MRN-Code/nodeapi/statuses/556b86c0dacabfd8a218237618b4b3733e9e3624","head":{"label":"MRN-Code:coinstac-consortia","ref":"coinstac-consortia","sha":"556b86c0dacabfd8a218237618b4b3733e9e3624","user":{"login":"MRN-Code","id":5330818,"avatar_url":"https://avatars.githubusercontent.com/u/5330818?v=3","gravatar_id":"","url":"https://api.github.com/users/MRN-Code","html_url":"https://github.com/MRN-Code","followers_url":"https://api.github.com/users/MRN-Code/followers","following_url":"https://api.github.com/users/MRN-Code/following{/other_user}","gists_url":"https://api.github.com/users/MRN-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/MRN-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MRN-Code/subscriptions","organizations_url":"https://api.github.com/users/MRN-Code/orgs","repos_url":"https://api.github.com/users/MRN-Code/repos","events_url":"https://api.github.com/users/MRN-Code/events{/privacy}","received_events_url":"https://api.github.com/users/MRN-Code/received_events","type":"Organization","site_admin":false},"repo":{"id":30939722,"name":"nodeapi","full_name":"MRN-Code/nodeapi","owner":{"login":"MRN-Code","id":5330818,"avatar_url":"https://avatars.githubusercontent.com/u/5330818?v=3","gravatar_id":"","url":"https://api.github.com/users/MRN-Code","html_url":"https://github.com/MRN-Code","followers_url":"https://api.github.com/users/MRN-Code/followers","following_url":"https://api.github.com/users/MRN-Code/following{/other_user}","gists_url":"https://api.github.com/users/MRN-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/MRN-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MRN-Code/subscriptions","organizations_url":"https://api.github.com/users/MRN-Code/orgs","repos_url":"https://api.github.com/users/MRN-Code/repos","events_url":"https://api.github.com/users/MRN-Code/events{/privacy}","received_events_url":"https://api.github.com/users/MRN-Code/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MRN-Code/nodeapi","description":"node based API for COINS","fork":false,"url":"https://api.github.com/repos/MRN-Code/nodeapi","forks_url":"https://api.github.com/repos/MRN-Code/nodeapi/forks","keys_url":"https://api.github.com/repos/MRN-Code/nodeapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MRN-Code/nodeapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MRN-Code/nodeapi/teams","hooks_url":"https://api.github.com/repos/MRN-Code/nodeapi/hooks","issue_events_url":"https://api.github.com/repos/MRN-Code/nodeapi/issues/events{/number}","events_url":"https://api.github.com/repos/MRN-Code/nodeapi/events","assignees_url":"https://api.github.com/repos/MRN-Code/nodeapi/assignees{/user}","branches_url":"https://api.github.com/repos/MRN-Code/nodeapi/branches{/branch}","tags_url":"https://api.github.com/repos/MRN-Code/nodeapi/tags","blobs_url":"https://api.github.com/repos/MRN-Code/nodeapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MRN-Code/nodeapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MRN-Code/nodeapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/MRN-Code/nodeapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MRN-Code/nodeapi/statuses/{sha}","languages_url":"https://api.github.com/repos/MRN-Code/nodeapi/languages","stargazers_url":"https://api.github.com/repos/MRN-Code/nodeapi/stargazers","contributors_url":"https://api.github.com/repos/MRN-Code/nodeapi/contributors","subscribers_url":"https://api.github.com/repos/MRN-Code/nodeapi/subscribers","subscription_url":"https://api.github.com/repos/MRN-Code/nodeapi/subscription","commits_url":"https://api.github.com/repos/MRN-Code/nodeapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/MRN-Code/nodeapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/MRN-Code/nodeapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/MRN-Code/nodeapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/MRN-Code/nodeapi/contents/{+path}","compare_url":"https://api.github.com/repos/MRN-Code/nodeapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MRN-Code/nodeapi/merges","archive_url":"https://api.github.com/repos/MRN-Code/nodeapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MRN-Code/nodeapi/downloads","issues_url":"https://api.github.com/repos/MRN-Code/nodeapi/issues{/number}","pulls_url":"https://api.github.com/repos/MRN-Code/nodeapi/pulls{/number}","milestones_url":"https://api.github.com/repos/MRN-Code/nodeapi/milestones{/number}","notifications_url":"https://api.github.com/repos/MRN-Code/nodeapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MRN-Code/nodeapi/labels{/name}","releases_url":"https://api.github.com/repos/MRN-Code/nodeapi/releases{/id}","created_at":"2015-02-17T21:52:23Z","updated_at":"2015-04-01T23:19:21Z","pushed_at":"2015-09-04T17:16:30Z","git_url":"git://github.com/MRN-Code/nodeapi.git","ssh_url":"git@github.com:MRN-Code/nodeapi.git","clone_url":"https://github.com/MRN-Code/nodeapi.git","svn_url":"https://github.com/MRN-Code/nodeapi","homepage":null,"size":4293,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":0,"default_branch":"develop"}},"base":{"label":"MRN-Code:develop","ref":"develop","sha":"a4cc647640a7d5b2dab1ee8c04e2189ca8c7e48f","user":{"login":"MRN-Code","id":5330818,"avatar_url":"https://avatars.githubusercontent.com/u/5330818?v=3","gravatar_id":"","url":"https://api.github.com/users/MRN-Code","html_url":"https://github.com/MRN-Code","followers_url":"https://api.github.com/users/MRN-Code/followers","following_url":"https://api.github.com/users/MRN-Code/following{/other_user}","gists_url":"https://api.github.com/users/MRN-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/MRN-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MRN-Code/subscriptions","organizations_url":"https://api.github.com/users/MRN-Code/orgs","repos_url":"https://api.github.com/users/MRN-Code/repos","events_url":"https://api.github.com/users/MRN-Code/events{/privacy}","received_events_url":"https://api.github.com/users/MRN-Code/received_events","type":"Organization","site_admin":false},"repo":{"id":30939722,"name":"nodeapi","full_name":"MRN-Code/nodeapi","owner":{"login":"MRN-Code","id":5330818,"avatar_url":"https://avatars.githubusercontent.com/u/5330818?v=3","gravatar_id":"","url":"https://api.github.com/users/MRN-Code","html_url":"https://github.com/MRN-Code","followers_url":"https://api.github.com/users/MRN-Code/followers","following_url":"https://api.github.com/users/MRN-Code/following{/other_user}","gists_url":"https://api.github.com/users/MRN-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/MRN-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MRN-Code/subscriptions","organizations_url":"https://api.github.com/users/MRN-Code/orgs","repos_url":"https://api.github.com/users/MRN-Code/repos","events_url":"https://api.github.com/users/MRN-Code/events{/privacy}","received_events_url":"https://api.github.com/users/MRN-Code/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MRN-Code/nodeapi","description":"node based API for COINS","fork":false,"url":"https://api.github.com/repos/MRN-Code/nodeapi","forks_url":"https://api.github.com/repos/MRN-Code/nodeapi/forks","keys_url":"https://api.github.com/repos/MRN-Code/nodeapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MRN-Code/nodeapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MRN-Code/nodeapi/teams","hooks_url":"https://api.github.com/repos/MRN-Code/nodeapi/hooks","issue_events_url":"https://api.github.com/repos/MRN-Code/nodeapi/issues/events{/number}","events_url":"https://api.github.com/repos/MRN-Code/nodeapi/events","assignees_url":"https://api.github.com/repos/MRN-Code/nodeapi/assignees{/user}","branches_url":"https://api.github.com/repos/MRN-Code/nodeapi/branches{/branch}","tags_url":"https://api.github.com/repos/MRN-Code/nodeapi/tags","blobs_url":"https://api.github.com/repos/MRN-Code/nodeapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MRN-Code/nodeapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MRN-Code/nodeapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/MRN-Code/nodeapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MRN-Code/nodeapi/statuses/{sha}","languages_url":"https://api.github.com/repos/MRN-Code/nodeapi/languages","stargazers_url":"https://api.github.com/repos/MRN-Code/nodeapi/stargazers","contributors_url":"https://api.github.com/repos/MRN-Code/nodeapi/contributors","subscribers_url":"https://api.github.com/repos/MRN-Code/nodeapi/subscribers","subscription_url":"https://api.github.com/repos/MRN-Code/nodeapi/subscription","commits_url":"https://api.github.com/repos/MRN-Code/nodeapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/MRN-Code/nodeapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/MRN-Code/nodeapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/MRN-Code/nodeapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/MRN-Code/nodeapi/contents/{+path}","compare_url":"https://api.github.com/repos/MRN-Code/nodeapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MRN-Code/nodeapi/merges","archive_url":"https://api.github.com/repos/MRN-Code/nodeapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MRN-Code/nodeapi/downloads","issues_url":"https://api.github.com/repos/MRN-Code/nodeapi/issues{/number}","pulls_url":"https://api.github.com/repos/MRN-Code/nodeapi/pulls{/number}","milestones_url":"https://api.github.com/repos/MRN-Code/nodeapi/milestones{/number}","notifications_url":"https://api.github.com/repos/MRN-Code/nodeapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MRN-Code/nodeapi/labels{/name}","releases_url":"https://api.github.com/repos/MRN-Code/nodeapi/releases{/id}","created_at":"2015-02-17T21:52:23Z","updated_at":"2015-04-01T23:19:21Z","pushed_at":"2015-09-04T17:16:30Z","git_url":"git://github.com/MRN-Code/nodeapi.git","ssh_url":"git@github.com:MRN-Code/nodeapi.git","clone_url":"https://github.com/MRN-Code/nodeapi.git","svn_url":"https://github.com/MRN-Code/nodeapi","homepage":null,"size":4293,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/MRN-Code/nodeapi/pulls/21"},"html":{"href":"https://github.com/MRN-Code/nodeapi/pull/21"},"issue":{"href":"https://api.github.com/repos/MRN-Code/nodeapi/issues/21"},"comments":{"href":"https://api.github.com/repos/MRN-Code/nodeapi/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/MRN-Code/nodeapi/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/MRN-Code/nodeapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MRN-Code/nodeapi/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/MRN-Code/nodeapi/statuses/556b86c0dacabfd8a218237618b4b3733e9e3624"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"rsskmr","id":5331533,"avatar_url":"https://avatars.githubusercontent.com/u/5331533?v=3","gravatar_id":"","url":"https://api.github.com/users/rsskmr","html_url":"https://github.com/rsskmr","followers_url":"https://api.github.com/users/rsskmr/followers","following_url":"https://api.github.com/users/rsskmr/following{/other_user}","gists_url":"https://api.github.com/users/rsskmr/gists{/gist_id}","starred_url":"https://api.github.com/users/rsskmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsskmr/subscriptions","organizations_url":"https://api.github.com/users/rsskmr/orgs","repos_url":"https://api.github.com/users/rsskmr/repos","events_url":"https://api.github.com/users/rsskmr/events{/privacy}","received_events_url":"https://api.github.com/users/rsskmr/received_events","type":"User","site_admin":false},"comments":0,"review_comments":19,"commits":5,"additions":550,"deletions":11,"changed_files":12}}