{"action":"opened","number":28,"pull_request":{"url":"https://api.github.com/repos/patientslikeme/es_dump_restore/pulls/28","id":155939011,"html_url":"https://github.com/patientslikeme/es_dump_restore/pull/28","diff_url":"https://github.com/patientslikeme/es_dump_restore/pull/28.diff","patch_url":"https://github.com/patientslikeme/es_dump_restore/pull/28.patch","issue_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/issues/28","number":28,"state":"open","locked":false,"title":"Expose option to dump to preserve version data","user":{"login":"vincedevendra","id":12373198,"avatar_url":"https://avatars2.githubusercontent.com/u/12373198?v=4","gravatar_id":"","url":"https://api.github.com/users/vincedevendra","html_url":"https://github.com/vincedevendra","followers_url":"https://api.github.com/users/vincedevendra/followers","following_url":"https://api.github.com/users/vincedevendra/following{/other_user}","gists_url":"https://api.github.com/users/vincedevendra/gists{/gist_id}","starred_url":"https://api.github.com/users/vincedevendra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincedevendra/subscriptions","organizations_url":"https://api.github.com/users/vincedevendra/orgs","repos_url":"https://api.github.com/users/vincedevendra/repos","events_url":"https://api.github.com/users/vincedevendra/events{/privacy}","received_events_url":"https://api.github.com/users/vincedevendra/received_events","type":"User","site_admin":false},"body":"@nbudin @suzannehamilton\r\n\r\nExpose option to dump to preserve version data\r\n\r\nThe search api expects `version: true` to be set in the params, not as a\r\nrequested field.\r\n\r\nThe bulk api expects both `\"_version\":<version_number>` and `\"version_type\": \"external\"` if\r\nsomething other than automatic versions are being used.\r\n\r\nSince the underlying es apis don't have version preserving as the default option, this\r\nexposes a new `--preserve-versions` option to the dump and dump_type\r\ncommands, with a default of false\r\n\r\nDoc references:\r\nhttps://www.elastic.co/guide/en/elasticsearch/reference/6.0/search-request-version.html\r\nhttps://www.elastic.co/guide/en/elasticsearch/reference/2.4/docs-bulk.html#bulk-versioning\r\n\r\nFixes #25","created_at":"2017-12-01T19:30:26Z","updated_at":"2017-12-01T19:30:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/pulls/28/commits","review_comments_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/pulls/28/comments","review_comment_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/issues/28/comments","statuses_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/statuses/a30e27160ced0e9d98419f36cfda1cbd5d57e360","head":{"label":"patientslikeme:fix_version_field_bug","ref":"fix_version_field_bug","sha":"a30e27160ced0e9d98419f36cfda1cbd5d57e360","user":{"login":"patientslikeme","id":23326,"avatar_url":"https://avatars1.githubusercontent.com/u/23326?v=4","gravatar_id":"","url":"https://api.github.com/users/patientslikeme","html_url":"https://github.com/patientslikeme","followers_url":"https://api.github.com/users/patientslikeme/followers","following_url":"https://api.github.com/users/patientslikeme/following{/other_user}","gists_url":"https://api.github.com/users/patientslikeme/gists{/gist_id}","starred_url":"https://api.github.com/users/patientslikeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patientslikeme/subscriptions","organizations_url":"https://api.github.com/users/patientslikeme/orgs","repos_url":"https://api.github.com/users/patientslikeme/repos","events_url":"https://api.github.com/users/patientslikeme/events{/privacy}","received_events_url":"https://api.github.com/users/patientslikeme/received_events","type":"Organization","site_admin":false},"repo":{"id":5542314,"name":"es_dump_restore","full_name":"patientslikeme/es_dump_restore","owner":{"login":"patientslikeme","id":23326,"avatar_url":"https://avatars1.githubusercontent.com/u/23326?v=4","gravatar_id":"","url":"https://api.github.com/users/patientslikeme","html_url":"https://github.com/patientslikeme","followers_url":"https://api.github.com/users/patientslikeme/followers","following_url":"https://api.github.com/users/patientslikeme/following{/other_user}","gists_url":"https://api.github.com/users/patientslikeme/gists{/gist_id}","starred_url":"https://api.github.com/users/patientslikeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patientslikeme/subscriptions","organizations_url":"https://api.github.com/users/patientslikeme/orgs","repos_url":"https://api.github.com/users/patientslikeme/repos","events_url":"https://api.github.com/users/patientslikeme/events{/privacy}","received_events_url":"https://api.github.com/users/patientslikeme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/patientslikeme/es_dump_restore","description":"Saves and restores ElasticSearch index contents using a compressed file format","fork":false,"url":"https://api.github.com/repos/patientslikeme/es_dump_restore","forks_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/forks","keys_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/teams","hooks_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/hooks","issue_events_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/issues/events{/number}","events_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/events","assignees_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/assignees{/user}","branches_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/branches{/branch}","tags_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/tags","blobs_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/git/refs{/sha}","trees_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/statuses/{sha}","languages_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/languages","stargazers_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/stargazers","contributors_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/contributors","subscribers_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/subscribers","subscription_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/subscription","commits_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/commits{/sha}","git_commits_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/git/commits{/sha}","comments_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/comments{/number}","issue_comment_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/issues/comments{/number}","contents_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/contents/{+path}","compare_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/merges","archive_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/downloads","issues_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/issues{/number}","pulls_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/pulls{/number}","milestones_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/milestones{/number}","notifications_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/labels{/name}","releases_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/releases{/id}","deployments_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/deployments","created_at":"2012-08-24T15:38:33Z","updated_at":"2017-10-20T15:29:42Z","pushed_at":"2017-12-01T19:28:42Z","git_url":"git://github.com/patientslikeme/es_dump_restore.git","ssh_url":"git@github.com:patientslikeme/es_dump_restore.git","clone_url":"https://github.com/patientslikeme/es_dump_restore.git","svn_url":"https://github.com/patientslikeme/es_dump_restore","homepage":"","size":54,"stargazers_count":24,"watchers_count":24,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":20,"open_issues":5,"watchers":24,"default_branch":"master"}},"base":{"label":"patientslikeme:master","ref":"master","sha":"1a1a4f3482ce910c3af150fc197187ea49a8fc7a","user":{"login":"patientslikeme","id":23326,"avatar_url":"https://avatars1.githubusercontent.com/u/23326?v=4","gravatar_id":"","url":"https://api.github.com/users/patientslikeme","html_url":"https://github.com/patientslikeme","followers_url":"https://api.github.com/users/patientslikeme/followers","following_url":"https://api.github.com/users/patientslikeme/following{/other_user}","gists_url":"https://api.github.com/users/patientslikeme/gists{/gist_id}","starred_url":"https://api.github.com/users/patientslikeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patientslikeme/subscriptions","organizations_url":"https://api.github.com/users/patientslikeme/orgs","repos_url":"https://api.github.com/users/patientslikeme/repos","events_url":"https://api.github.com/users/patientslikeme/events{/privacy}","received_events_url":"https://api.github.com/users/patientslikeme/received_events","type":"Organization","site_admin":false},"repo":{"id":5542314,"name":"es_dump_restore","full_name":"patientslikeme/es_dump_restore","owner":{"login":"patientslikeme","id":23326,"avatar_url":"https://avatars1.githubusercontent.com/u/23326?v=4","gravatar_id":"","url":"https://api.github.com/users/patientslikeme","html_url":"https://github.com/patientslikeme","followers_url":"https://api.github.com/users/patientslikeme/followers","following_url":"https://api.github.com/users/patientslikeme/following{/other_user}","gists_url":"https://api.github.com/users/patientslikeme/gists{/gist_id}","starred_url":"https://api.github.com/users/patientslikeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patientslikeme/subscriptions","organizations_url":"https://api.github.com/users/patientslikeme/orgs","repos_url":"https://api.github.com/users/patientslikeme/repos","events_url":"https://api.github.com/users/patientslikeme/events{/privacy}","received_events_url":"https://api.github.com/users/patientslikeme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/patientslikeme/es_dump_restore","description":"Saves and restores ElasticSearch index contents using a compressed file format","fork":false,"url":"https://api.github.com/repos/patientslikeme/es_dump_restore","forks_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/forks","keys_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/teams","hooks_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/hooks","issue_events_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/issues/events{/number}","events_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/events","assignees_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/assignees{/user}","branches_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/branches{/branch}","tags_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/tags","blobs_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/git/refs{/sha}","trees_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/statuses/{sha}","languages_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/languages","stargazers_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/stargazers","contributors_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/contributors","subscribers_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/subscribers","subscription_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/subscription","commits_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/commits{/sha}","git_commits_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/git/commits{/sha}","comments_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/comments{/number}","issue_comment_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/issues/comments{/number}","contents_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/contents/{+path}","compare_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/merges","archive_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/downloads","issues_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/issues{/number}","pulls_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/pulls{/number}","milestones_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/milestones{/number}","notifications_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/labels{/name}","releases_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/releases{/id}","deployments_url":"https://api.github.com/repos/patientslikeme/es_dump_restore/deployments","created_at":"2012-08-24T15:38:33Z","updated_at":"2017-10-20T15:29:42Z","pushed_at":"2017-12-01T19:28:42Z","git_url":"git://github.com/patientslikeme/es_dump_restore.git","ssh_url":"git@github.com:patientslikeme/es_dump_restore.git","clone_url":"https://github.com/patientslikeme/es_dump_restore.git","svn_url":"https://github.com/patientslikeme/es_dump_restore","homepage":"","size":54,"stargazers_count":24,"watchers_count":24,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":20,"open_issues":5,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/patientslikeme/es_dump_restore/pulls/28"},"html":{"href":"https://github.com/patientslikeme/es_dump_restore/pull/28"},"issue":{"href":"https://api.github.com/repos/patientslikeme/es_dump_restore/issues/28"},"comments":{"href":"https://api.github.com/repos/patientslikeme/es_dump_restore/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/patientslikeme/es_dump_restore/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/patientslikeme/es_dump_restore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/patientslikeme/es_dump_restore/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/patientslikeme/es_dump_restore/statuses/a30e27160ced0e9d98419f36cfda1cbd5d57e360"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":19,"deletions":9,"changed_files":2}}
{"actor":{"display_login":"vincedevendra"}}