{"action":"closed","number":827,"pull_request":{"url":"https://api.github.com/repos/wellcometrust/platform-api/pulls/827","id":136725556,"html_url":"https://github.com/wellcometrust/platform-api/pull/827","diff_url":"https://github.com/wellcometrust/platform-api/pull/827.diff","patch_url":"https://github.com/wellcometrust/platform-api/pull/827.patch","issue_url":"https://api.github.com/repos/wellcometrust/platform-api/issues/827","number":827,"state":"closed","locked":false,"title":"Adds Item to ES mapping","user":{"login":"kenoir","id":953792,"avatar_url":"https://avatars3.githubusercontent.com/u/953792?v=4","gravatar_id":"","url":"https://api.github.com/users/kenoir","html_url":"https://github.com/kenoir","followers_url":"https://api.github.com/users/kenoir/followers","following_url":"https://api.github.com/users/kenoir/following{/other_user}","gists_url":"https://api.github.com/users/kenoir/gists{/gist_id}","starred_url":"https://api.github.com/users/kenoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenoir/subscriptions","organizations_url":"https://api.github.com/users/kenoir/orgs","repos_url":"https://api.github.com/users/kenoir/repos","events_url":"https://api.github.com/users/kenoir/events{/privacy}","received_events_url":"https://api.github.com/users/kenoir/received_events","type":"User","site_admin":false},"body":"### What is this PR trying to achieve?\r\n\r\nMoving towards ingesting items into the API this adds an ES mapping to make it possible to store the items as per the ontology.\r\n\r\nThis PR also refactors the mappings a little to reduce code duplication.\r\n\r\n### Who is this change for?\r\n\r\n💻  & 📚 \r\n\r\n### Have the following been considered/are they needed?\r\n\r\n- [ ] Deployed new versions\r\n","created_at":"2017-08-21T10:17:05Z","updated_at":"2017-08-21T11:37:42Z","closed_at":"2017-08-21T11:37:42Z","merged_at":"2017-08-21T11:37:42Z","merge_commit_sha":"016456aa838198cdc00861687e15d2740d23d076","assignee":{"login":"kenoir","id":953792,"avatar_url":"https://avatars3.githubusercontent.com/u/953792?v=4","gravatar_id":"","url":"https://api.github.com/users/kenoir","html_url":"https://github.com/kenoir","followers_url":"https://api.github.com/users/kenoir/followers","following_url":"https://api.github.com/users/kenoir/following{/other_user}","gists_url":"https://api.github.com/users/kenoir/gists{/gist_id}","starred_url":"https://api.github.com/users/kenoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenoir/subscriptions","organizations_url":"https://api.github.com/users/kenoir/orgs","repos_url":"https://api.github.com/users/kenoir/repos","events_url":"https://api.github.com/users/kenoir/events{/privacy}","received_events_url":"https://api.github.com/users/kenoir/received_events","type":"User","site_admin":false},"assignees":[{"login":"kenoir","id":953792,"avatar_url":"https://avatars3.githubusercontent.com/u/953792?v=4","gravatar_id":"","url":"https://api.github.com/users/kenoir","html_url":"https://github.com/kenoir","followers_url":"https://api.github.com/users/kenoir/followers","following_url":"https://api.github.com/users/kenoir/following{/other_user}","gists_url":"https://api.github.com/users/kenoir/gists{/gist_id}","starred_url":"https://api.github.com/users/kenoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenoir/subscriptions","organizations_url":"https://api.github.com/users/kenoir/orgs","repos_url":"https://api.github.com/users/kenoir/repos","events_url":"https://api.github.com/users/kenoir/events{/privacy}","received_events_url":"https://api.github.com/users/kenoir/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"alicefuzier","id":26736746,"avatar_url":"https://avatars3.githubusercontent.com/u/26736746?v=4","gravatar_id":"","url":"https://api.github.com/users/alicefuzier","html_url":"https://github.com/alicefuzier","followers_url":"https://api.github.com/users/alicefuzier/followers","following_url":"https://api.github.com/users/alicefuzier/following{/other_user}","gists_url":"https://api.github.com/users/alicefuzier/gists{/gist_id}","starred_url":"https://api.github.com/users/alicefuzier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicefuzier/subscriptions","organizations_url":"https://api.github.com/users/alicefuzier/orgs","repos_url":"https://api.github.com/users/alicefuzier/repos","events_url":"https://api.github.com/users/alicefuzier/events{/privacy}","received_events_url":"https://api.github.com/users/alicefuzier/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/wellcometrust/platform-api/pulls/827/commits","review_comments_url":"https://api.github.com/repos/wellcometrust/platform-api/pulls/827/comments","review_comment_url":"https://api.github.com/repos/wellcometrust/platform-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wellcometrust/platform-api/issues/827/comments","statuses_url":"https://api.github.com/repos/wellcometrust/platform-api/statuses/b5eb23261d9d1f5b7bd473faeab5f61659c9a1e4","head":{"label":"wellcometrust:add-items-mapping-to-es","ref":"add-items-mapping-to-es","sha":"b5eb23261d9d1f5b7bd473faeab5f61659c9a1e4","user":{"login":"wellcometrust","id":2814213,"avatar_url":"https://avatars3.githubusercontent.com/u/2814213?v=4","gravatar_id":"","url":"https://api.github.com/users/wellcometrust","html_url":"https://github.com/wellcometrust","followers_url":"https://api.github.com/users/wellcometrust/followers","following_url":"https://api.github.com/users/wellcometrust/following{/other_user}","gists_url":"https://api.github.com/users/wellcometrust/gists{/gist_id}","starred_url":"https://api.github.com/users/wellcometrust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wellcometrust/subscriptions","organizations_url":"https://api.github.com/users/wellcometrust/orgs","repos_url":"https://api.github.com/users/wellcometrust/repos","events_url":"https://api.github.com/users/wellcometrust/events{/privacy}","received_events_url":"https://api.github.com/users/wellcometrust/received_events","type":"Organization","site_admin":false},"repo":{"id":80218943,"name":"platform-api","full_name":"wellcometrust/platform-api","owner":{"login":"wellcometrust","id":2814213,"avatar_url":"https://avatars3.githubusercontent.com/u/2814213?v=4","gravatar_id":"","url":"https://api.github.com/users/wellcometrust","html_url":"https://github.com/wellcometrust","followers_url":"https://api.github.com/users/wellcometrust/followers","following_url":"https://api.github.com/users/wellcometrust/following{/other_user}","gists_url":"https://api.github.com/users/wellcometrust/gists{/gist_id}","starred_url":"https://api.github.com/users/wellcometrust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wellcometrust/subscriptions","organizations_url":"https://api.github.com/users/wellcometrust/orgs","repos_url":"https://api.github.com/users/wellcometrust/repos","events_url":"https://api.github.com/users/wellcometrust/events{/privacy}","received_events_url":"https://api.github.com/users/wellcometrust/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wellcometrust/platform-api","description":"The new Wellcome Collection digital platform.","fork":false,"url":"https://api.github.com/repos/wellcometrust/platform-api","forks_url":"https://api.github.com/repos/wellcometrust/platform-api/forks","keys_url":"https://api.github.com/repos/wellcometrust/platform-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wellcometrust/platform-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wellcometrust/platform-api/teams","hooks_url":"https://api.github.com/repos/wellcometrust/platform-api/hooks","issue_events_url":"https://api.github.com/repos/wellcometrust/platform-api/issues/events{/number}","events_url":"https://api.github.com/repos/wellcometrust/platform-api/events","assignees_url":"https://api.github.com/repos/wellcometrust/platform-api/assignees{/user}","branches_url":"https://api.github.com/repos/wellcometrust/platform-api/branches{/branch}","tags_url":"https://api.github.com/repos/wellcometrust/platform-api/tags","blobs_url":"https://api.github.com/repos/wellcometrust/platform-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wellcometrust/platform-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wellcometrust/platform-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/wellcometrust/platform-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wellcometrust/platform-api/statuses/{sha}","languages_url":"https://api.github.com/repos/wellcometrust/platform-api/languages","stargazers_url":"https://api.github.com/repos/wellcometrust/platform-api/stargazers","contributors_url":"https://api.github.com/repos/wellcometrust/platform-api/contributors","subscribers_url":"https://api.github.com/repos/wellcometrust/platform-api/subscribers","subscription_url":"https://api.github.com/repos/wellcometrust/platform-api/subscription","commits_url":"https://api.github.com/repos/wellcometrust/platform-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/wellcometrust/platform-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/wellcometrust/platform-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/wellcometrust/platform-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/wellcometrust/platform-api/contents/{+path}","compare_url":"https://api.github.com/repos/wellcometrust/platform-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wellcometrust/platform-api/merges","archive_url":"https://api.github.com/repos/wellcometrust/platform-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wellcometrust/platform-api/downloads","issues_url":"https://api.github.com/repos/wellcometrust/platform-api/issues{/number}","pulls_url":"https://api.github.com/repos/wellcometrust/platform-api/pulls{/number}","milestones_url":"https://api.github.com/repos/wellcometrust/platform-api/milestones{/number}","notifications_url":"https://api.github.com/repos/wellcometrust/platform-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wellcometrust/platform-api/labels{/name}","releases_url":"https://api.github.com/repos/wellcometrust/platform-api/releases{/id}","deployments_url":"https://api.github.com/repos/wellcometrust/platform-api/deployments","created_at":"2017-01-27T15:27:42Z","updated_at":"2017-08-10T12:18:00Z","pushed_at":"2017-08-21T11:37:42Z","git_url":"git://github.com/wellcometrust/platform-api.git","ssh_url":"git@github.com:wellcometrust/platform-api.git","clone_url":"https://github.com/wellcometrust/platform-api.git","svn_url":"https://github.com/wellcometrust/platform-api","homepage":"https://next.wellcomecollection.org/","size":4810,"stargazers_count":2,"watchers_count":2,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":140,"forks":1,"open_issues":140,"watchers":2,"default_branch":"master"}},"base":{"label":"wellcometrust:master","ref":"master","sha":"4bc5a49b42a9efb92ed7bbb8fa7a217a6ec770ce","user":{"login":"wellcometrust","id":2814213,"avatar_url":"https://avatars3.githubusercontent.com/u/2814213?v=4","gravatar_id":"","url":"https://api.github.com/users/wellcometrust","html_url":"https://github.com/wellcometrust","followers_url":"https://api.github.com/users/wellcometrust/followers","following_url":"https://api.github.com/users/wellcometrust/following{/other_user}","gists_url":"https://api.github.com/users/wellcometrust/gists{/gist_id}","starred_url":"https://api.github.com/users/wellcometrust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wellcometrust/subscriptions","organizations_url":"https://api.github.com/users/wellcometrust/orgs","repos_url":"https://api.github.com/users/wellcometrust/repos","events_url":"https://api.github.com/users/wellcometrust/events{/privacy}","received_events_url":"https://api.github.com/users/wellcometrust/received_events","type":"Organization","site_admin":false},"repo":{"id":80218943,"name":"platform-api","full_name":"wellcometrust/platform-api","owner":{"login":"wellcometrust","id":2814213,"avatar_url":"https://avatars3.githubusercontent.com/u/2814213?v=4","gravatar_id":"","url":"https://api.github.com/users/wellcometrust","html_url":"https://github.com/wellcometrust","followers_url":"https://api.github.com/users/wellcometrust/followers","following_url":"https://api.github.com/users/wellcometrust/following{/other_user}","gists_url":"https://api.github.com/users/wellcometrust/gists{/gist_id}","starred_url":"https://api.github.com/users/wellcometrust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wellcometrust/subscriptions","organizations_url":"https://api.github.com/users/wellcometrust/orgs","repos_url":"https://api.github.com/users/wellcometrust/repos","events_url":"https://api.github.com/users/wellcometrust/events{/privacy}","received_events_url":"https://api.github.com/users/wellcometrust/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wellcometrust/platform-api","description":"The new Wellcome Collection digital platform.","fork":false,"url":"https://api.github.com/repos/wellcometrust/platform-api","forks_url":"https://api.github.com/repos/wellcometrust/platform-api/forks","keys_url":"https://api.github.com/repos/wellcometrust/platform-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wellcometrust/platform-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wellcometrust/platform-api/teams","hooks_url":"https://api.github.com/repos/wellcometrust/platform-api/hooks","issue_events_url":"https://api.github.com/repos/wellcometrust/platform-api/issues/events{/number}","events_url":"https://api.github.com/repos/wellcometrust/platform-api/events","assignees_url":"https://api.github.com/repos/wellcometrust/platform-api/assignees{/user}","branches_url":"https://api.github.com/repos/wellcometrust/platform-api/branches{/branch}","tags_url":"https://api.github.com/repos/wellcometrust/platform-api/tags","blobs_url":"https://api.github.com/repos/wellcometrust/platform-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wellcometrust/platform-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wellcometrust/platform-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/wellcometrust/platform-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wellcometrust/platform-api/statuses/{sha}","languages_url":"https://api.github.com/repos/wellcometrust/platform-api/languages","stargazers_url":"https://api.github.com/repos/wellcometrust/platform-api/stargazers","contributors_url":"https://api.github.com/repos/wellcometrust/platform-api/contributors","subscribers_url":"https://api.github.com/repos/wellcometrust/platform-api/subscribers","subscription_url":"https://api.github.com/repos/wellcometrust/platform-api/subscription","commits_url":"https://api.github.com/repos/wellcometrust/platform-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/wellcometrust/platform-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/wellcometrust/platform-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/wellcometrust/platform-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/wellcometrust/platform-api/contents/{+path}","compare_url":"https://api.github.com/repos/wellcometrust/platform-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wellcometrust/platform-api/merges","archive_url":"https://api.github.com/repos/wellcometrust/platform-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wellcometrust/platform-api/downloads","issues_url":"https://api.github.com/repos/wellcometrust/platform-api/issues{/number}","pulls_url":"https://api.github.com/repos/wellcometrust/platform-api/pulls{/number}","milestones_url":"https://api.github.com/repos/wellcometrust/platform-api/milestones{/number}","notifications_url":"https://api.github.com/repos/wellcometrust/platform-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wellcometrust/platform-api/labels{/name}","releases_url":"https://api.github.com/repos/wellcometrust/platform-api/releases{/id}","deployments_url":"https://api.github.com/repos/wellcometrust/platform-api/deployments","created_at":"2017-01-27T15:27:42Z","updated_at":"2017-08-10T12:18:00Z","pushed_at":"2017-08-21T11:37:42Z","git_url":"git://github.com/wellcometrust/platform-api.git","ssh_url":"git@github.com:wellcometrust/platform-api.git","clone_url":"https://github.com/wellcometrust/platform-api.git","svn_url":"https://github.com/wellcometrust/platform-api","homepage":"https://next.wellcomecollection.org/","size":4810,"stargazers_count":2,"watchers_count":2,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":140,"forks":1,"open_issues":140,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wellcometrust/platform-api/pulls/827"},"html":{"href":"https://github.com/wellcometrust/platform-api/pull/827"},"issue":{"href":"https://api.github.com/repos/wellcometrust/platform-api/issues/827"},"comments":{"href":"https://api.github.com/repos/wellcometrust/platform-api/issues/827/comments"},"review_comments":{"href":"https://api.github.com/repos/wellcometrust/platform-api/pulls/827/comments"},"review_comment":{"href":"https://api.github.com/repos/wellcometrust/platform-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wellcometrust/platform-api/pulls/827/commits"},"statuses":{"href":"https://api.github.com/repos/wellcometrust/platform-api/statuses/b5eb23261d9d1f5b7bd473faeab5f61659c9a1e4"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"alexwlchan","id":301220,"avatar_url":"https://avatars0.githubusercontent.com/u/301220?v=4","gravatar_id":"","url":"https://api.github.com/users/alexwlchan","html_url":"https://github.com/alexwlchan","followers_url":"https://api.github.com/users/alexwlchan/followers","following_url":"https://api.github.com/users/alexwlchan/following{/other_user}","gists_url":"https://api.github.com/users/alexwlchan/gists{/gist_id}","starred_url":"https://api.github.com/users/alexwlchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexwlchan/subscriptions","organizations_url":"https://api.github.com/users/alexwlchan/orgs","repos_url":"https://api.github.com/users/alexwlchan/repos","events_url":"https://api.github.com/users/alexwlchan/events{/privacy}","received_events_url":"https://api.github.com/users/alexwlchan/received_events","type":"User","site_admin":false},"comments":1,"review_comments":2,"maintainer_can_modify":false,"commits":1,"additions":43,"deletions":32,"changed_files":1}}
{"actor":{"display_login":"alexwlchan"}}