{"action":"closed","number":27,"pull_request":{"url":"https://api.github.com/repos/nolanlawson/relational-pouch/pulls/27","id":34797339,"html_url":"https://github.com/nolanlawson/relational-pouch/pull/27","diff_url":"https://github.com/nolanlawson/relational-pouch/pull/27.diff","patch_url":"https://github.com/nolanlawson/relational-pouch/pull/27.patch","issue_url":"https://api.github.com/repos/nolanlawson/relational-pouch/issues/27","number":27,"state":"closed","locked":false,"title":"Keep the attachments attached","user":{"login":"stevebest","id":235527,"avatar_url":"https://avatars.githubusercontent.com/u/235527?v=3","gravatar_id":"","url":"https://api.github.com/users/stevebest","html_url":"https://github.com/stevebest","followers_url":"https://api.github.com/users/stevebest/followers","following_url":"https://api.github.com/users/stevebest/following{/other_user}","gists_url":"https://api.github.com/users/stevebest/gists{/gist_id}","starred_url":"https://api.github.com/users/stevebest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevebest/subscriptions","organizations_url":"https://api.github.com/users/stevebest/orgs","repos_url":"https://api.github.com/users/stevebest/repos","events_url":"https://api.github.com/users/stevebest/events{/privacy}","received_events_url":"https://api.github.com/users/stevebest/received_events","type":"User","site_admin":false},"body":"This is basically a duplicate of #20, with tests adjusted for expected (sane) behavior.\r\n\r\nThere should probably be more tests. The one right now only checks that the attachment is saved along with the document on creation. Additionally, we want to ensure that the attachments are not lost when the document is updated, unless we explicitly delete some/all of them.","created_at":"2015-05-06T08:36:04Z","updated_at":"2015-05-06T12:42:24Z","closed_at":"2015-05-06T12:42:24Z","merged_at":"2015-05-06T12:42:24Z","merge_commit_sha":"2ce551254b991a20374067d99557398d23a4fd8d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nolanlawson/relational-pouch/pulls/27/commits","review_comments_url":"https://api.github.com/repos/nolanlawson/relational-pouch/pulls/27/comments","review_comment_url":"https://api.github.com/repos/nolanlawson/relational-pouch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nolanlawson/relational-pouch/issues/27/comments","statuses_url":"https://api.github.com/repos/nolanlawson/relational-pouch/statuses/91bf0629a9b4bde263e1464d0462416cb8c4f9f3","head":{"label":"stevebest:master","ref":"master","sha":"91bf0629a9b4bde263e1464d0462416cb8c4f9f3","user":{"login":"stevebest","id":235527,"avatar_url":"https://avatars.githubusercontent.com/u/235527?v=3","gravatar_id":"","url":"https://api.github.com/users/stevebest","html_url":"https://github.com/stevebest","followers_url":"https://api.github.com/users/stevebest/followers","following_url":"https://api.github.com/users/stevebest/following{/other_user}","gists_url":"https://api.github.com/users/stevebest/gists{/gist_id}","starred_url":"https://api.github.com/users/stevebest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevebest/subscriptions","organizations_url":"https://api.github.com/users/stevebest/orgs","repos_url":"https://api.github.com/users/stevebest/repos","events_url":"https://api.github.com/users/stevebest/events{/privacy}","received_events_url":"https://api.github.com/users/stevebest/received_events","type":"User","site_admin":false},"repo":{"id":35145837,"name":"relational-pouch","full_name":"stevebest/relational-pouch","owner":{"login":"stevebest","id":235527,"avatar_url":"https://avatars.githubusercontent.com/u/235527?v=3","gravatar_id":"","url":"https://api.github.com/users/stevebest","html_url":"https://github.com/stevebest","followers_url":"https://api.github.com/users/stevebest/followers","following_url":"https://api.github.com/users/stevebest/following{/other_user}","gists_url":"https://api.github.com/users/stevebest/gists{/gist_id}","starred_url":"https://api.github.com/users/stevebest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevebest/subscriptions","organizations_url":"https://api.github.com/users/stevebest/orgs","repos_url":"https://api.github.com/users/stevebest/repos","events_url":"https://api.github.com/users/stevebest/events{/privacy}","received_events_url":"https://api.github.com/users/stevebest/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stevebest/relational-pouch","description":"Store relational data in PouchDB/CouchDB","fork":true,"url":"https://api.github.com/repos/stevebest/relational-pouch","forks_url":"https://api.github.com/repos/stevebest/relational-pouch/forks","keys_url":"https://api.github.com/repos/stevebest/relational-pouch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stevebest/relational-pouch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stevebest/relational-pouch/teams","hooks_url":"https://api.github.com/repos/stevebest/relational-pouch/hooks","issue_events_url":"https://api.github.com/repos/stevebest/relational-pouch/issues/events{/number}","events_url":"https://api.github.com/repos/stevebest/relational-pouch/events","assignees_url":"https://api.github.com/repos/stevebest/relational-pouch/assignees{/user}","branches_url":"https://api.github.com/repos/stevebest/relational-pouch/branches{/branch}","tags_url":"https://api.github.com/repos/stevebest/relational-pouch/tags","blobs_url":"https://api.github.com/repos/stevebest/relational-pouch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stevebest/relational-pouch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stevebest/relational-pouch/git/refs{/sha}","trees_url":"https://api.github.com/repos/stevebest/relational-pouch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stevebest/relational-pouch/statuses/{sha}","languages_url":"https://api.github.com/repos/stevebest/relational-pouch/languages","stargazers_url":"https://api.github.com/repos/stevebest/relational-pouch/stargazers","contributors_url":"https://api.github.com/repos/stevebest/relational-pouch/contributors","subscribers_url":"https://api.github.com/repos/stevebest/relational-pouch/subscribers","subscription_url":"https://api.github.com/repos/stevebest/relational-pouch/subscription","commits_url":"https://api.github.com/repos/stevebest/relational-pouch/commits{/sha}","git_commits_url":"https://api.github.com/repos/stevebest/relational-pouch/git/commits{/sha}","comments_url":"https://api.github.com/repos/stevebest/relational-pouch/comments{/number}","issue_comment_url":"https://api.github.com/repos/stevebest/relational-pouch/issues/comments{/number}","contents_url":"https://api.github.com/repos/stevebest/relational-pouch/contents/{+path}","compare_url":"https://api.github.com/repos/stevebest/relational-pouch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stevebest/relational-pouch/merges","archive_url":"https://api.github.com/repos/stevebest/relational-pouch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stevebest/relational-pouch/downloads","issues_url":"https://api.github.com/repos/stevebest/relational-pouch/issues{/number}","pulls_url":"https://api.github.com/repos/stevebest/relational-pouch/pulls{/number}","milestones_url":"https://api.github.com/repos/stevebest/relational-pouch/milestones{/number}","notifications_url":"https://api.github.com/repos/stevebest/relational-pouch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stevebest/relational-pouch/labels{/name}","releases_url":"https://api.github.com/repos/stevebest/relational-pouch/releases{/id}","created_at":"2015-05-06T07:42:43Z","updated_at":"2015-05-06T08:19:59Z","pushed_at":"2015-05-06T08:19:59Z","git_url":"git://github.com/stevebest/relational-pouch.git","ssh_url":"git@github.com:stevebest/relational-pouch.git","clone_url":"https://github.com/stevebest/relational-pouch.git","svn_url":"https://github.com/stevebest/relational-pouch","homepage":"","size":31322,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"nolanlawson:master","ref":"master","sha":"041a200ae9670ed8ab290c2295ebb7de08670fa2","user":{"login":"nolanlawson","id":283842,"avatar_url":"https://avatars.githubusercontent.com/u/283842?v=3","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"repo":{"id":23026081,"name":"relational-pouch","full_name":"nolanlawson/relational-pouch","owner":{"login":"nolanlawson","id":283842,"avatar_url":"https://avatars.githubusercontent.com/u/283842?v=3","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nolanlawson/relational-pouch","description":"Store relational data in PouchDB/CouchDB","fork":false,"url":"https://api.github.com/repos/nolanlawson/relational-pouch","forks_url":"https://api.github.com/repos/nolanlawson/relational-pouch/forks","keys_url":"https://api.github.com/repos/nolanlawson/relational-pouch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nolanlawson/relational-pouch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nolanlawson/relational-pouch/teams","hooks_url":"https://api.github.com/repos/nolanlawson/relational-pouch/hooks","issue_events_url":"https://api.github.com/repos/nolanlawson/relational-pouch/issues/events{/number}","events_url":"https://api.github.com/repos/nolanlawson/relational-pouch/events","assignees_url":"https://api.github.com/repos/nolanlawson/relational-pouch/assignees{/user}","branches_url":"https://api.github.com/repos/nolanlawson/relational-pouch/branches{/branch}","tags_url":"https://api.github.com/repos/nolanlawson/relational-pouch/tags","blobs_url":"https://api.github.com/repos/nolanlawson/relational-pouch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nolanlawson/relational-pouch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nolanlawson/relational-pouch/git/refs{/sha}","trees_url":"https://api.github.com/repos/nolanlawson/relational-pouch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nolanlawson/relational-pouch/statuses/{sha}","languages_url":"https://api.github.com/repos/nolanlawson/relational-pouch/languages","stargazers_url":"https://api.github.com/repos/nolanlawson/relational-pouch/stargazers","contributors_url":"https://api.github.com/repos/nolanlawson/relational-pouch/contributors","subscribers_url":"https://api.github.com/repos/nolanlawson/relational-pouch/subscribers","subscription_url":"https://api.github.com/repos/nolanlawson/relational-pouch/subscription","commits_url":"https://api.github.com/repos/nolanlawson/relational-pouch/commits{/sha}","git_commits_url":"https://api.github.com/repos/nolanlawson/relational-pouch/git/commits{/sha}","comments_url":"https://api.github.com/repos/nolanlawson/relational-pouch/comments{/number}","issue_comment_url":"https://api.github.com/repos/nolanlawson/relational-pouch/issues/comments{/number}","contents_url":"https://api.github.com/repos/nolanlawson/relational-pouch/contents/{+path}","compare_url":"https://api.github.com/repos/nolanlawson/relational-pouch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nolanlawson/relational-pouch/merges","archive_url":"https://api.github.com/repos/nolanlawson/relational-pouch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nolanlawson/relational-pouch/downloads","issues_url":"https://api.github.com/repos/nolanlawson/relational-pouch/issues{/number}","pulls_url":"https://api.github.com/repos/nolanlawson/relational-pouch/pulls{/number}","milestones_url":"https://api.github.com/repos/nolanlawson/relational-pouch/milestones{/number}","notifications_url":"https://api.github.com/repos/nolanlawson/relational-pouch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nolanlawson/relational-pouch/labels{/name}","releases_url":"https://api.github.com/repos/nolanlawson/relational-pouch/releases{/id}","created_at":"2014-08-16T20:04:27Z","updated_at":"2015-05-06T12:42:24Z","pushed_at":"2015-05-06T12:42:24Z","git_url":"git://github.com/nolanlawson/relational-pouch.git","ssh_url":"git@github.com:nolanlawson/relational-pouch.git","clone_url":"https://github.com/nolanlawson/relational-pouch.git","svn_url":"https://github.com/nolanlawson/relational-pouch","homepage":"","size":31736,"stargazers_count":57,"watchers_count":57,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":6,"forks":9,"open_issues":6,"watchers":57,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nolanlawson/relational-pouch/pulls/27"},"html":{"href":"https://github.com/nolanlawson/relational-pouch/pull/27"},"issue":{"href":"https://api.github.com/repos/nolanlawson/relational-pouch/issues/27"},"comments":{"href":"https://api.github.com/repos/nolanlawson/relational-pouch/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/nolanlawson/relational-pouch/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/nolanlawson/relational-pouch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nolanlawson/relational-pouch/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/nolanlawson/relational-pouch/statuses/91bf0629a9b4bde263e1464d0462416cb8c4f9f3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"nolanlawson","id":283842,"avatar_url":"https://avatars.githubusercontent.com/u/283842?v=3","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":3,"additions":17,"deletions":4,"changed_files":2}}