{"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/machikoe/palette-elastic_search/pulls/15","id":187148521,"html_url":"https://github.com/machikoe/palette-elastic_search/pull/15","diff_url":"https://github.com/machikoe/palette-elastic_search/pull/15.diff","patch_url":"https://github.com/machikoe/palette-elastic_search/pull/15.patch","issue_url":"https://api.github.com/repos/machikoe/palette-elastic_search/issues/15","number":15,"state":"open","locked":false,"title":"INDEX更新中の新規レコードを同期する","user":{"login":"Pinoshino","id":17427575,"avatar_url":"https://avatars2.githubusercontent.com/u/17427575?v=4","gravatar_id":"","url":"https://api.github.com/users/Pinoshino","html_url":"https://github.com/Pinoshino","followers_url":"https://api.github.com/users/Pinoshino/followers","following_url":"https://api.github.com/users/Pinoshino/following{/other_user}","gists_url":"https://api.github.com/users/Pinoshino/gists{/gist_id}","starred_url":"https://api.github.com/users/Pinoshino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pinoshino/subscriptions","organizations_url":"https://api.github.com/users/Pinoshino/orgs","repos_url":"https://api.github.com/users/Pinoshino/repos","events_url":"https://api.github.com/users/Pinoshino/events{/privacy}","received_events_url":"https://api.github.com/users/Pinoshino/received_events","type":"User","site_admin":false},"body":"## 概要\r\n- 更新中に新規に作成されたデータを同期する処理を追加する\r\n- `update_index!`を実行開始から実行終了までの間に新規にレコードが作成された場合、新規作成されたレコードもESに同期されるようにする\r\n\r\n## 現状の詳細\r\nINDEX更新中に手動でデータを作成してみたところの報告。(ログを参照しながら実験)\r\n- 該当のモデルの更新中 → 同期されてない\r\n- 該当のモデルの更新中 → 同期されている\r\n(具体例：更新中に`Cms::Branch`を追加した場合、`AnnouncementV2::Message`などの更新中は問題なく同期されるが、`Cms::Branch`の更新中は同期されない)\r\n\r\n## 方針\r\n各モデルごとで最後のレコード更新時間がINDEX更新処理前後で変わっていた場合、更新処理をくり返す","created_at":"2018-05-10T09:52:09Z","updated_at":"2018-05-10T09:52:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/machikoe/palette-elastic_search/pulls/15/commits","review_comments_url":"https://api.github.com/repos/machikoe/palette-elastic_search/pulls/15/comments","review_comment_url":"https://api.github.com/repos/machikoe/palette-elastic_search/pulls/comments{/number}","comments_url":"https://api.github.com/repos/machikoe/palette-elastic_search/issues/15/comments","statuses_url":"https://api.github.com/repos/machikoe/palette-elastic_search/statuses/9ed3aae1b2a24cda53ddaf40198301cfdb491c5e","head":{"label":"Pinoshino:fix/update_index_when_new_record_exist","ref":"fix/update_index_when_new_record_exist","sha":"9ed3aae1b2a24cda53ddaf40198301cfdb491c5e","user":{"login":"Pinoshino","id":17427575,"avatar_url":"https://avatars2.githubusercontent.com/u/17427575?v=4","gravatar_id":"","url":"https://api.github.com/users/Pinoshino","html_url":"https://github.com/Pinoshino","followers_url":"https://api.github.com/users/Pinoshino/followers","following_url":"https://api.github.com/users/Pinoshino/following{/other_user}","gists_url":"https://api.github.com/users/Pinoshino/gists{/gist_id}","starred_url":"https://api.github.com/users/Pinoshino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pinoshino/subscriptions","organizations_url":"https://api.github.com/users/Pinoshino/orgs","repos_url":"https://api.github.com/users/Pinoshino/repos","events_url":"https://api.github.com/users/Pinoshino/events{/privacy}","received_events_url":"https://api.github.com/users/Pinoshino/received_events","type":"User","site_admin":false},"repo":{"id":132849989,"name":"palette-elastic_search","full_name":"Pinoshino/palette-elastic_search","owner":{"login":"Pinoshino","id":17427575,"avatar_url":"https://avatars2.githubusercontent.com/u/17427575?v=4","gravatar_id":"","url":"https://api.github.com/users/Pinoshino","html_url":"https://github.com/Pinoshino","followers_url":"https://api.github.com/users/Pinoshino/followers","following_url":"https://api.github.com/users/Pinoshino/following{/other_user}","gists_url":"https://api.github.com/users/Pinoshino/gists{/gist_id}","starred_url":"https://api.github.com/users/Pinoshino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pinoshino/subscriptions","organizations_url":"https://api.github.com/users/Pinoshino/orgs","repos_url":"https://api.github.com/users/Pinoshino/repos","events_url":"https://api.github.com/users/Pinoshino/events{/privacy}","received_events_url":"https://api.github.com/users/Pinoshino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Pinoshino/palette-elastic_search","description":null,"fork":true,"url":"https://api.github.com/repos/Pinoshino/palette-elastic_search","forks_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/forks","keys_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/teams","hooks_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/hooks","issue_events_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/issues/events{/number}","events_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/events","assignees_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/assignees{/user}","branches_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/branches{/branch}","tags_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/tags","blobs_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/statuses/{sha}","languages_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/languages","stargazers_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/stargazers","contributors_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/contributors","subscribers_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/subscribers","subscription_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/subscription","commits_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/contents/{+path}","compare_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/merges","archive_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/downloads","issues_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/issues{/number}","pulls_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/pulls{/number}","milestones_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/milestones{/number}","notifications_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/labels{/name}","releases_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/releases{/id}","deployments_url":"https://api.github.com/repos/Pinoshino/palette-elastic_search/deployments","created_at":"2018-05-10T04:51:35Z","updated_at":"2018-05-10T04:51:37Z","pushed_at":"2018-05-10T09:50:43Z","git_url":"git://github.com/Pinoshino/palette-elastic_search.git","ssh_url":"git@github.com:Pinoshino/palette-elastic_search.git","clone_url":"https://github.com/Pinoshino/palette-elastic_search.git","svn_url":"https://github.com/Pinoshino/palette-elastic_search","homepage":null,"size":38,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"machikoe:feature/v.0.2.0","ref":"feature/v.0.2.0","sha":"d669505b97ae28acb99e065f2b7f8fc1f1685fb4","user":{"login":"machikoe","id":7802277,"avatar_url":"https://avatars0.githubusercontent.com/u/7802277?v=4","gravatar_id":"","url":"https://api.github.com/users/machikoe","html_url":"https://github.com/machikoe","followers_url":"https://api.github.com/users/machikoe/followers","following_url":"https://api.github.com/users/machikoe/following{/other_user}","gists_url":"https://api.github.com/users/machikoe/gists{/gist_id}","starred_url":"https://api.github.com/users/machikoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machikoe/subscriptions","organizations_url":"https://api.github.com/users/machikoe/orgs","repos_url":"https://api.github.com/users/machikoe/repos","events_url":"https://api.github.com/users/machikoe/events{/privacy}","received_events_url":"https://api.github.com/users/machikoe/received_events","type":"Organization","site_admin":false},"repo":{"id":106539479,"name":"palette-elastic_search","full_name":"machikoe/palette-elastic_search","owner":{"login":"machikoe","id":7802277,"avatar_url":"https://avatars0.githubusercontent.com/u/7802277?v=4","gravatar_id":"","url":"https://api.github.com/users/machikoe","html_url":"https://github.com/machikoe","followers_url":"https://api.github.com/users/machikoe/followers","following_url":"https://api.github.com/users/machikoe/following{/other_user}","gists_url":"https://api.github.com/users/machikoe/gists{/gist_id}","starred_url":"https://api.github.com/users/machikoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machikoe/subscriptions","organizations_url":"https://api.github.com/users/machikoe/orgs","repos_url":"https://api.github.com/users/machikoe/repos","events_url":"https://api.github.com/users/machikoe/events{/privacy}","received_events_url":"https://api.github.com/users/machikoe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/machikoe/palette-elastic_search","description":null,"fork":false,"url":"https://api.github.com/repos/machikoe/palette-elastic_search","forks_url":"https://api.github.com/repos/machikoe/palette-elastic_search/forks","keys_url":"https://api.github.com/repos/machikoe/palette-elastic_search/keys{/key_id}","collaborators_url":"https://api.github.com/repos/machikoe/palette-elastic_search/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/machikoe/palette-elastic_search/teams","hooks_url":"https://api.github.com/repos/machikoe/palette-elastic_search/hooks","issue_events_url":"https://api.github.com/repos/machikoe/palette-elastic_search/issues/events{/number}","events_url":"https://api.github.com/repos/machikoe/palette-elastic_search/events","assignees_url":"https://api.github.com/repos/machikoe/palette-elastic_search/assignees{/user}","branches_url":"https://api.github.com/repos/machikoe/palette-elastic_search/branches{/branch}","tags_url":"https://api.github.com/repos/machikoe/palette-elastic_search/tags","blobs_url":"https://api.github.com/repos/machikoe/palette-elastic_search/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/machikoe/palette-elastic_search/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/machikoe/palette-elastic_search/git/refs{/sha}","trees_url":"https://api.github.com/repos/machikoe/palette-elastic_search/git/trees{/sha}","statuses_url":"https://api.github.com/repos/machikoe/palette-elastic_search/statuses/{sha}","languages_url":"https://api.github.com/repos/machikoe/palette-elastic_search/languages","stargazers_url":"https://api.github.com/repos/machikoe/palette-elastic_search/stargazers","contributors_url":"https://api.github.com/repos/machikoe/palette-elastic_search/contributors","subscribers_url":"https://api.github.com/repos/machikoe/palette-elastic_search/subscribers","subscription_url":"https://api.github.com/repos/machikoe/palette-elastic_search/subscription","commits_url":"https://api.github.com/repos/machikoe/palette-elastic_search/commits{/sha}","git_commits_url":"https://api.github.com/repos/machikoe/palette-elastic_search/git/commits{/sha}","comments_url":"https://api.github.com/repos/machikoe/palette-elastic_search/comments{/number}","issue_comment_url":"https://api.github.com/repos/machikoe/palette-elastic_search/issues/comments{/number}","contents_url":"https://api.github.com/repos/machikoe/palette-elastic_search/contents/{+path}","compare_url":"https://api.github.com/repos/machikoe/palette-elastic_search/compare/{base}...{head}","merges_url":"https://api.github.com/repos/machikoe/palette-elastic_search/merges","archive_url":"https://api.github.com/repos/machikoe/palette-elastic_search/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/machikoe/palette-elastic_search/downloads","issues_url":"https://api.github.com/repos/machikoe/palette-elastic_search/issues{/number}","pulls_url":"https://api.github.com/repos/machikoe/palette-elastic_search/pulls{/number}","milestones_url":"https://api.github.com/repos/machikoe/palette-elastic_search/milestones{/number}","notifications_url":"https://api.github.com/repos/machikoe/palette-elastic_search/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/machikoe/palette-elastic_search/labels{/name}","releases_url":"https://api.github.com/repos/machikoe/palette-elastic_search/releases{/id}","deployments_url":"https://api.github.com/repos/machikoe/palette-elastic_search/deployments","created_at":"2017-10-11T10:24:29Z","updated_at":"2018-05-10T06:45:33Z","pushed_at":"2018-05-10T05:01:16Z","git_url":"git://github.com/machikoe/palette-elastic_search.git","ssh_url":"git@github.com:machikoe/palette-elastic_search.git","clone_url":"https://github.com/machikoe/palette-elastic_search.git","svn_url":"https://github.com/machikoe/palette-elastic_search","homepage":null,"size":39,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/machikoe/palette-elastic_search/pulls/15"},"html":{"href":"https://github.com/machikoe/palette-elastic_search/pull/15"},"issue":{"href":"https://api.github.com/repos/machikoe/palette-elastic_search/issues/15"},"comments":{"href":"https://api.github.com/repos/machikoe/palette-elastic_search/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/machikoe/palette-elastic_search/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/machikoe/palette-elastic_search/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/machikoe/palette-elastic_search/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/machikoe/palette-elastic_search/statuses/9ed3aae1b2a24cda53ddaf40198301cfdb491c5e"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":12,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"Pinoshino"}}