{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/comments/78389880","id":78389880,"diff_hunk":"@@ -1,12 +1,18 @@\n+const logger = require('@financial-times/n-logger').default;\n+const random = require('seedrandom');\n const AWS = require('aws-sdk');\n+const denodeify = require('denodeify');\n const kinesis = new AWS.Kinesis({ region: 'eu-west-1' });\n-const random = require('seedrandom');\n+const putRecord = denodeify(kinesis.putRecord);\n \n module.exports = function logChangedContent (data) {\n \tconst seed = process.env.REGION + process.title || '0';\n-\tkinesis.putRecord({\n+\tputRecord({\n \t\tStreamName: 'nextContentChangelog',\n \t\tPartitionKey: random(seed).toString(),","path":"server/lib/log-changed-content.js","position":null,"original_position":14,"commit_id":"12feb0c667d079c47cb5f1eb8d30176229153ef4","original_commit_id":"12feb0c667d079c47cb5f1eb8d30176229153ef4","user":{"login":"matthew-andrews","id":825088,"avatar_url":"https://avatars.githubusercontent.com/u/825088?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-andrews","html_url":"https://github.com/matthew-andrews","followers_url":"https://api.github.com/users/matthew-andrews/followers","following_url":"https://api.github.com/users/matthew-andrews/following{/other_user}","gists_url":"https://api.github.com/users/matthew-andrews/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-andrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-andrews/subscriptions","organizations_url":"https://api.github.com/users/matthew-andrews/orgs","repos_url":"https://api.github.com/users/matthew-andrews/repos","events_url":"https://api.github.com/users/matthew-andrews/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-andrews/received_events","type":"User","site_admin":false},"body":"think this will also need the time otherwise will be same every time…?\r\n","created_at":"2016-09-12T15:02:22Z","updated_at":"2016-09-12T15:02:22Z","html_url":"https://github.com/Financial-Times/next-es-interface/pull/488#discussion_r78389880","pull_request_url":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/488","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/comments/78389880"},"html":{"href":"https://github.com/Financial-Times/next-es-interface/pull/488#discussion_r78389880"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/488"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/488","id":84870084,"html_url":"https://github.com/Financial-Times/next-es-interface/pull/488","diff_url":"https://github.com/Financial-Times/next-es-interface/pull/488.diff","patch_url":"https://github.com/Financial-Times/next-es-interface/pull/488.patch","issue_url":"https://api.github.com/repos/Financial-Times/next-es-interface/issues/488","number":488,"state":"open","locked":false,"title":"Log changes in content to Kinesis","user":{"login":"TheoLeanse","id":4750238,"avatar_url":"https://avatars.githubusercontent.com/u/4750238?v=3","gravatar_id":"","url":"https://api.github.com/users/TheoLeanse","html_url":"https://github.com/TheoLeanse","followers_url":"https://api.github.com/users/TheoLeanse/followers","following_url":"https://api.github.com/users/TheoLeanse/following{/other_user}","gists_url":"https://api.github.com/users/TheoLeanse/gists{/gist_id}","starred_url":"https://api.github.com/users/TheoLeanse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheoLeanse/subscriptions","organizations_url":"https://api.github.com/users/TheoLeanse/orgs","repos_url":"https://api.github.com/users/TheoLeanse/repos","events_url":"https://api.github.com/users/TheoLeanse/events{/privacy}","received_events_url":"https://api.github.com/users/TheoLeanse/received_events","type":"User","site_admin":false},"body":"/cc @matthew-andrews @richard-still-ft ","created_at":"2016-09-12T13:22:59Z","updated_at":"2016-09-12T15:02:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e4dc333e5e91526d1b160ee617806fad5f97958b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/488/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/488/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/next-es-interface/issues/488/comments","statuses_url":"https://api.github.com/repos/Financial-Times/next-es-interface/statuses/12feb0c667d079c47cb5f1eb8d30176229153ef4","head":{"label":"Financial-Times:theo/kinesis-put-records","ref":"theo/kinesis-put-records","sha":"12feb0c667d079c47cb5f1eb8d30176229153ef4","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":26874532,"name":"next-es-interface","full_name":"Financial-Times/next-es-interface","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-es-interface","description":"Babysits Next's ElasticSearch clusters","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-es-interface","forks_url":"https://api.github.com/repos/Financial-Times/next-es-interface/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-es-interface/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-es-interface/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-es-interface/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-es-interface/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-es-interface/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-es-interface/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-es-interface/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-es-interface/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-es-interface/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-es-interface/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-es-interface/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-es-interface/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-es-interface/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-es-interface/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-es-interface/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-es-interface/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-es-interface/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-es-interface/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-es-interface/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-es-interface/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-es-interface/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-es-interface/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-es-interface/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-es-interface/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-es-interface/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-es-interface/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-es-interface/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-es-interface/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-es-interface/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-es-interface/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-es-interface/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-es-interface/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-es-interface/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/next-es-interface/deployments","created_at":"2014-11-19T18:09:48Z","updated_at":"2016-08-04T12:38:12Z","pushed_at":"2016-09-12T15:00:55Z","git_url":"git://github.com/Financial-Times/next-es-interface.git","ssh_url":"git@github.com:Financial-Times/next-es-interface.git","clone_url":"https://github.com/Financial-Times/next-es-interface.git","svn_url":"https://github.com/Financial-Times/next-es-interface","homepage":"","size":22116,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":1,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"3aa0e7446f87c8efe85e8869441422a4466d9536","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":26874532,"name":"next-es-interface","full_name":"Financial-Times/next-es-interface","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-es-interface","description":"Babysits Next's ElasticSearch clusters","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-es-interface","forks_url":"https://api.github.com/repos/Financial-Times/next-es-interface/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-es-interface/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-es-interface/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-es-interface/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-es-interface/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-es-interface/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-es-interface/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-es-interface/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-es-interface/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-es-interface/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-es-interface/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-es-interface/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-es-interface/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-es-interface/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-es-interface/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-es-interface/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-es-interface/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-es-interface/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-es-interface/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-es-interface/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-es-interface/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-es-interface/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-es-interface/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-es-interface/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-es-interface/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-es-interface/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-es-interface/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-es-interface/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-es-interface/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-es-interface/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-es-interface/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-es-interface/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-es-interface/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-es-interface/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/next-es-interface/deployments","created_at":"2014-11-19T18:09:48Z","updated_at":"2016-08-04T12:38:12Z","pushed_at":"2016-09-12T15:00:55Z","git_url":"git://github.com/Financial-Times/next-es-interface.git","ssh_url":"git@github.com:Financial-Times/next-es-interface.git","clone_url":"https://github.com/Financial-Times/next-es-interface.git","svn_url":"https://github.com/Financial-Times/next-es-interface","homepage":"","size":22116,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/488"},"html":{"href":"https://github.com/Financial-Times/next-es-interface/pull/488"},"issue":{"href":"https://api.github.com/repos/Financial-Times/next-es-interface/issues/488"},"comments":{"href":"https://api.github.com/repos/Financial-Times/next-es-interface/issues/488/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/488/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/next-es-interface/pulls/488/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/next-es-interface/statuses/12feb0c667d079c47cb5f1eb8d30176229153ef4"}}}}
{"actor":{"display_login":"matthew-andrews"}}