{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/comments/214924687","pull_request_review_id":152079096,"id":214924687,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDkyNDY4Nw==","diff_hunk":"@@ -19,8 +19,8 @@ module.exports.decrypt = (text) => {\n \treturn decrypted.toString();\n };\n \n-module.exports.encrypt = (text) => {\n-\ttext = text.toLowerCase();\n+module.exports.encrypt = (text, options = { lowerCase: true }) => {","path":"app/utils/crypto.server.utils.js","position":6,"original_position":6,"commit_id":"ce1d9ecff72426aa5f9e662a966e363b344bdef3","original_commit_id":"ce1d9ecff72426aa5f9e662a966e363b344bdef3","user":{"login":"keirog","id":150157,"node_id":"MDQ6VXNlcjE1MDE1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/150157?v=4","gravatar_id":"","url":"https://api.github.com/users/keirog","html_url":"https://github.com/keirog","followers_url":"https://api.github.com/users/keirog/followers","following_url":"https://api.github.com/users/keirog/following{/other_user}","gists_url":"https://api.github.com/users/keirog/gists{/gist_id}","starred_url":"https://api.github.com/users/keirog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keirog/subscriptions","organizations_url":"https://api.github.com/users/keirog/orgs","repos_url":"https://api.github.com/users/keirog/repos","events_url":"https://api.github.com/users/keirog/events{/privacy}","received_events_url":"https://api.github.com/users/keirog/received_events","type":"User","site_admin":false},"body":"We need `lowerCase` to be `false` by default because we're using it using it for the `email` field, which should be case sensitive (whereas the emailBlindIdx is case _insensitive_ and only used for search purposes/comparing hashes)","created_at":"2018-09-04T13:59:02Z","updated_at":"2018-09-04T13:59:03Z","html_url":"https://github.com/Financial-Times/email-users-lists/pull/191#discussion_r214924687","pull_request_url":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/191","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/comments/214924687"},"html":{"href":"https://github.com/Financial-Times/email-users-lists/pull/191#discussion_r214924687"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/191"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/191","id":212062884,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMDYyODg0","html_url":"https://github.com/Financial-Times/email-users-lists/pull/191","diff_url":"https://github.com/Financial-Times/email-users-lists/pull/191.diff","patch_url":"https://github.com/Financial-Times/email-users-lists/pull/191.patch","issue_url":"https://api.github.com/repos/Financial-Times/email-users-lists/issues/191","number":191,"state":"open","locked":false,"title":"One click Service Backend","user":{"login":"AbdullahAli","id":1620134,"node_id":"MDQ6VXNlcjE2MjAxMzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1620134?v=4","gravatar_id":"","url":"https://api.github.com/users/AbdullahAli","html_url":"https://github.com/AbdullahAli","followers_url":"https://api.github.com/users/AbdullahAli/followers","following_url":"https://api.github.com/users/AbdullahAli/following{/other_user}","gists_url":"https://api.github.com/users/AbdullahAli/gists{/gist_id}","starred_url":"https://api.github.com/users/AbdullahAli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbdullahAli/subscriptions","organizations_url":"https://api.github.com/users/AbdullahAli/orgs","repos_url":"https://api.github.com/users/AbdullahAli/repos","events_url":"https://api.github.com/users/AbdullahAli/events{/privacy}","received_events_url":"https://api.github.com/users/AbdullahAli/received_events","type":"User","site_admin":false},"body":"Added One click Service backend\r\n\r\n- [x] `POST /api/one-click/v1/users` to generate encrypted links\r\nRequired query params:\r\n`uuids['...36 characters uuids', '...']`, `newsletterId`\r\n\r\nreturns:\r\n```\r\n{ [{uuid: '...', encryptedPayload: '...'}, '...', '...', etc... ] }\r\nor\r\n{ error: '...' }\r\n```\r\n\r\n\r\n\r\n- [x] `PATCH /api/one-click/v1/user` to update user newsletter subscriptions\r\nRequired body:\r\n`payload`\r\n\r\nreturns:\r\n```\r\n{ newsletterName: '...' }\r\nor\r\n{ error: '...' }\r\n```","created_at":"2018-08-30T12:33:53Z","updated_at":"2018-09-04T13:59:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8dec732862b91e8868ceb827348bae2c084ecea7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/191/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/191/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/email-users-lists/issues/191/comments","statuses_url":"https://api.github.com/repos/Financial-Times/email-users-lists/statuses/ce1d9ecff72426aa5f9e662a966e363b344bdef3","head":{"label":"Financial-Times:one-click","ref":"one-click","sha":"ce1d9ecff72426aa5f9e662a966e363b344bdef3","user":{"login":"Financial-Times","id":3502508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MDI1MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/3502508?v=4","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":36813507,"node_id":"MDEwOlJlcG9zaXRvcnkzNjgxMzUwNw==","name":"email-users-lists","full_name":"Financial-Times/email-users-lists","owner":{"login":"Financial-Times","id":3502508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MDI1MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/3502508?v=4","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/email-users-lists","description":"REST API for Users' Lists","fork":false,"url":"https://api.github.com/repos/Financial-Times/email-users-lists","forks_url":"https://api.github.com/repos/Financial-Times/email-users-lists/forks","keys_url":"https://api.github.com/repos/Financial-Times/email-users-lists/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/email-users-lists/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/email-users-lists/teams","hooks_url":"https://api.github.com/repos/Financial-Times/email-users-lists/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/email-users-lists/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/email-users-lists/events","assignees_url":"https://api.github.com/repos/Financial-Times/email-users-lists/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/email-users-lists/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/email-users-lists/tags","blobs_url":"https://api.github.com/repos/Financial-Times/email-users-lists/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/email-users-lists/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/email-users-lists/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/email-users-lists/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/email-users-lists/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/email-users-lists/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/email-users-lists/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/email-users-lists/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/email-users-lists/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/email-users-lists/subscription","commits_url":"https://api.github.com/repos/Financial-Times/email-users-lists/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/email-users-lists/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/email-users-lists/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/email-users-lists/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/email-users-lists/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/email-users-lists/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/email-users-lists/merges","archive_url":"https://api.github.com/repos/Financial-Times/email-users-lists/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/email-users-lists/downloads","issues_url":"https://api.github.com/repos/Financial-Times/email-users-lists/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/email-users-lists/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/email-users-lists/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/email-users-lists/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/email-users-lists/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/email-users-lists/deployments","created_at":"2015-06-03T15:41:12Z","updated_at":"2018-08-24T08:12:56Z","pushed_at":"2018-09-04T13:32:22Z","git_url":"git://github.com/Financial-Times/email-users-lists.git","ssh_url":"git@github.com:Financial-Times/email-users-lists.git","clone_url":"https://github.com/Financial-Times/email-users-lists.git","svn_url":"https://github.com/Financial-Times/email-users-lists","homepage":"https://email-webservices.ft.com/docs/users-lists/","size":11148,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","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":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"6bf8c384496e18f3eb167f4321b90effac25da41","user":{"login":"Financial-Times","id":3502508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MDI1MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/3502508?v=4","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":36813507,"node_id":"MDEwOlJlcG9zaXRvcnkzNjgxMzUwNw==","name":"email-users-lists","full_name":"Financial-Times/email-users-lists","owner":{"login":"Financial-Times","id":3502508,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MDI1MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/3502508?v=4","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/email-users-lists","description":"REST API for Users' Lists","fork":false,"url":"https://api.github.com/repos/Financial-Times/email-users-lists","forks_url":"https://api.github.com/repos/Financial-Times/email-users-lists/forks","keys_url":"https://api.github.com/repos/Financial-Times/email-users-lists/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/email-users-lists/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/email-users-lists/teams","hooks_url":"https://api.github.com/repos/Financial-Times/email-users-lists/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/email-users-lists/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/email-users-lists/events","assignees_url":"https://api.github.com/repos/Financial-Times/email-users-lists/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/email-users-lists/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/email-users-lists/tags","blobs_url":"https://api.github.com/repos/Financial-Times/email-users-lists/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/email-users-lists/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/email-users-lists/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/email-users-lists/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/email-users-lists/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/email-users-lists/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/email-users-lists/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/email-users-lists/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/email-users-lists/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/email-users-lists/subscription","commits_url":"https://api.github.com/repos/Financial-Times/email-users-lists/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/email-users-lists/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/email-users-lists/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/email-users-lists/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/email-users-lists/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/email-users-lists/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/email-users-lists/merges","archive_url":"https://api.github.com/repos/Financial-Times/email-users-lists/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/email-users-lists/downloads","issues_url":"https://api.github.com/repos/Financial-Times/email-users-lists/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/email-users-lists/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/email-users-lists/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/email-users-lists/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/email-users-lists/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/email-users-lists/deployments","created_at":"2015-06-03T15:41:12Z","updated_at":"2018-08-24T08:12:56Z","pushed_at":"2018-09-04T13:32:22Z","git_url":"git://github.com/Financial-Times/email-users-lists.git","ssh_url":"git@github.com:Financial-Times/email-users-lists.git","clone_url":"https://github.com/Financial-Times/email-users-lists.git","svn_url":"https://github.com/Financial-Times/email-users-lists","homepage":"https://email-webservices.ft.com/docs/users-lists/","size":11148,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","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":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/191"},"html":{"href":"https://github.com/Financial-Times/email-users-lists/pull/191"},"issue":{"href":"https://api.github.com/repos/Financial-Times/email-users-lists/issues/191"},"comments":{"href":"https://api.github.com/repos/Financial-Times/email-users-lists/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/email-users-lists/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/email-users-lists/statuses/ce1d9ecff72426aa5f9e662a966e363b344bdef3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"keirog"}}