{"action":"created","comment":{"url":"https://api.github.com/repos/google/crmint/pulls/comments/212259633","pull_request_review_id":148842064,"id":212259633,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjI1OTYzMw==","diff_hunk":"@@ -74,6 +83,21 @@ def recipients(self):\n       return self.emails_for_notifications.split()\n     return []\n \n+  def _add_multi_to_memcache(self, mapping,retries = 10, time = MEMCACHE_DEFAULT_EXPIRATION_TIME):\n+    \"\"\"\n+        Set multiple values in memcache, prefixed by the id of the pipeline\n+        and having a default expiration time of 24 hours\n+    \"\"\"\n+    client = memcache.Client()\n+    while retries > 0:\n+      cached_mapping = client.get_multi(mapping, key_prefix = str(self.id) + \"_\", for_cas = True)","path":"backends/core/models.py","position":41,"original_position":41,"commit_id":"ad2b3800cb997f69bd0c457c57b0a89bd5d6cdfa","original_commit_id":"ad2b3800cb997f69bd0c457c57b0a89bd5d6cdfa","user":{"login":"dulacp","id":328718,"node_id":"MDQ6VXNlcjMyODcxOA==","avatar_url":"https://avatars1.githubusercontent.com/u/328718?v=4","gravatar_id":"","url":"https://api.github.com/users/dulacp","html_url":"https://github.com/dulacp","followers_url":"https://api.github.com/users/dulacp/followers","following_url":"https://api.github.com/users/dulacp/following{/other_user}","gists_url":"https://api.github.com/users/dulacp/gists{/gist_id}","starred_url":"https://api.github.com/users/dulacp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dulacp/subscriptions","organizations_url":"https://api.github.com/users/dulacp/orgs","repos_url":"https://api.github.com/users/dulacp/repos","events_url":"https://api.github.com/users/dulacp/events{/privacy}","received_events_url":"https://api.github.com/users/dulacp/received_events","type":"User","site_admin":false},"body":"Also, avoid concatenating string with `+` in Python. Prefer the string interpolation like this:\r\n\r\n```python\r\nkey_prefix = '%s_' % str(self.id)\r\n```","created_at":"2018-08-23T10:31:18Z","updated_at":"2018-08-23T10:35:10Z","html_url":"https://github.com/google/crmint/pull/19#discussion_r212259633","pull_request_url":"https://api.github.com/repos/google/crmint/pulls/19","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/google/crmint/pulls/comments/212259633"},"html":{"href":"https://github.com/google/crmint/pull/19#discussion_r212259633"},"pull_request":{"href":"https://api.github.com/repos/google/crmint/pulls/19"}},"in_reply_to_id":212259211},"pull_request":{"url":"https://api.github.com/repos/google/crmint/pulls/19","id":210152376,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMTUyMzc2","html_url":"https://github.com/google/crmint/pull/19","diff_url":"https://github.com/google/crmint/pull/19.diff","patch_url":"https://github.com/google/crmint/pull/19.patch","issue_url":"https://api.github.com/repos/google/crmint/issues/19","number":19,"state":"open","locked":false,"title":"Statemachine","user":{"login":"Dianna22","id":17767089,"node_id":"MDQ6VXNlcjE3NzY3MDg5","avatar_url":"https://avatars2.githubusercontent.com/u/17767089?v=4","gravatar_id":"","url":"https://api.github.com/users/Dianna22","html_url":"https://github.com/Dianna22","followers_url":"https://api.github.com/users/Dianna22/followers","following_url":"https://api.github.com/users/Dianna22/following{/other_user}","gists_url":"https://api.github.com/users/Dianna22/gists{/gist_id}","starred_url":"https://api.github.com/users/Dianna22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dianna22/subscriptions","organizations_url":"https://api.github.com/users/Dianna22/orgs","repos_url":"https://api.github.com/users/Dianna22/repos","events_url":"https://api.github.com/users/Dianna22/events{/privacy}","received_events_url":"https://api.github.com/users/Dianna22/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-22T14:25:22Z","updated_at":"2018-08-23T10:35:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"517ce58b29904e897e3ba5dc746320324a44bbf7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/crmint/pulls/19/commits","review_comments_url":"https://api.github.com/repos/google/crmint/pulls/19/comments","review_comment_url":"https://api.github.com/repos/google/crmint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/crmint/issues/19/comments","statuses_url":"https://api.github.com/repos/google/crmint/statuses/ad2b3800cb997f69bd0c457c57b0a89bd5d6cdfa","head":{"label":"Dianna22:newstatemachine","ref":"newstatemachine","sha":"ad2b3800cb997f69bd0c457c57b0a89bd5d6cdfa","user":{"login":"Dianna22","id":17767089,"node_id":"MDQ6VXNlcjE3NzY3MDg5","avatar_url":"https://avatars2.githubusercontent.com/u/17767089?v=4","gravatar_id":"","url":"https://api.github.com/users/Dianna22","html_url":"https://github.com/Dianna22","followers_url":"https://api.github.com/users/Dianna22/followers","following_url":"https://api.github.com/users/Dianna22/following{/other_user}","gists_url":"https://api.github.com/users/Dianna22/gists{/gist_id}","starred_url":"https://api.github.com/users/Dianna22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dianna22/subscriptions","organizations_url":"https://api.github.com/users/Dianna22/orgs","repos_url":"https://api.github.com/users/Dianna22/repos","events_url":"https://api.github.com/users/Dianna22/events{/privacy}","received_events_url":"https://api.github.com/users/Dianna22/received_events","type":"User","site_admin":false},"repo":{"id":145013586,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUwMTM1ODY=","name":"crmint","full_name":"Dianna22/crmint","owner":{"login":"Dianna22","id":17767089,"node_id":"MDQ6VXNlcjE3NzY3MDg5","avatar_url":"https://avatars2.githubusercontent.com/u/17767089?v=4","gravatar_id":"","url":"https://api.github.com/users/Dianna22","html_url":"https://github.com/Dianna22","followers_url":"https://api.github.com/users/Dianna22/followers","following_url":"https://api.github.com/users/Dianna22/following{/other_user}","gists_url":"https://api.github.com/users/Dianna22/gists{/gist_id}","starred_url":"https://api.github.com/users/Dianna22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dianna22/subscriptions","organizations_url":"https://api.github.com/users/Dianna22/orgs","repos_url":"https://api.github.com/users/Dianna22/repos","events_url":"https://api.github.com/users/Dianna22/events{/privacy}","received_events_url":"https://api.github.com/users/Dianna22/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dianna22/crmint","description":"CRMint makes reliable data integration and data processing with Google easy for advertisers","fork":true,"url":"https://api.github.com/repos/Dianna22/crmint","forks_url":"https://api.github.com/repos/Dianna22/crmint/forks","keys_url":"https://api.github.com/repos/Dianna22/crmint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dianna22/crmint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dianna22/crmint/teams","hooks_url":"https://api.github.com/repos/Dianna22/crmint/hooks","issue_events_url":"https://api.github.com/repos/Dianna22/crmint/issues/events{/number}","events_url":"https://api.github.com/repos/Dianna22/crmint/events","assignees_url":"https://api.github.com/repos/Dianna22/crmint/assignees{/user}","branches_url":"https://api.github.com/repos/Dianna22/crmint/branches{/branch}","tags_url":"https://api.github.com/repos/Dianna22/crmint/tags","blobs_url":"https://api.github.com/repos/Dianna22/crmint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dianna22/crmint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dianna22/crmint/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dianna22/crmint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dianna22/crmint/statuses/{sha}","languages_url":"https://api.github.com/repos/Dianna22/crmint/languages","stargazers_url":"https://api.github.com/repos/Dianna22/crmint/stargazers","contributors_url":"https://api.github.com/repos/Dianna22/crmint/contributors","subscribers_url":"https://api.github.com/repos/Dianna22/crmint/subscribers","subscription_url":"https://api.github.com/repos/Dianna22/crmint/subscription","commits_url":"https://api.github.com/repos/Dianna22/crmint/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dianna22/crmint/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dianna22/crmint/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dianna22/crmint/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dianna22/crmint/contents/{+path}","compare_url":"https://api.github.com/repos/Dianna22/crmint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dianna22/crmint/merges","archive_url":"https://api.github.com/repos/Dianna22/crmint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dianna22/crmint/downloads","issues_url":"https://api.github.com/repos/Dianna22/crmint/issues{/number}","pulls_url":"https://api.github.com/repos/Dianna22/crmint/pulls{/number}","milestones_url":"https://api.github.com/repos/Dianna22/crmint/milestones{/number}","notifications_url":"https://api.github.com/repos/Dianna22/crmint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dianna22/crmint/labels{/name}","releases_url":"https://api.github.com/repos/Dianna22/crmint/releases{/id}","deployments_url":"https://api.github.com/repos/Dianna22/crmint/deployments","created_at":"2018-08-16T16:28:32Z","updated_at":"2018-08-16T16:28:34Z","pushed_at":"2018-08-22T14:54:47Z","git_url":"git://github.com/Dianna22/crmint.git","ssh_url":"git@github.com:Dianna22/crmint.git","clone_url":"https://github.com/Dianna22/crmint.git","svn_url":"https://github.com/Dianna22/crmint","homepage":"","size":221,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"google:dev","ref":"dev","sha":"e2b475b94cdf5b18d8201e9a62d2a12087635219","user":{"login":"google","id":1342004,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":138856518,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg4NTY1MTg=","name":"crmint","full_name":"google/crmint","owner":{"login":"google","id":1342004,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/crmint","description":"CRMint makes reliable data integration and data processing with Google easy for advertisers","fork":false,"url":"https://api.github.com/repos/google/crmint","forks_url":"https://api.github.com/repos/google/crmint/forks","keys_url":"https://api.github.com/repos/google/crmint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/crmint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/crmint/teams","hooks_url":"https://api.github.com/repos/google/crmint/hooks","issue_events_url":"https://api.github.com/repos/google/crmint/issues/events{/number}","events_url":"https://api.github.com/repos/google/crmint/events","assignees_url":"https://api.github.com/repos/google/crmint/assignees{/user}","branches_url":"https://api.github.com/repos/google/crmint/branches{/branch}","tags_url":"https://api.github.com/repos/google/crmint/tags","blobs_url":"https://api.github.com/repos/google/crmint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/crmint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/crmint/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/crmint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/crmint/statuses/{sha}","languages_url":"https://api.github.com/repos/google/crmint/languages","stargazers_url":"https://api.github.com/repos/google/crmint/stargazers","contributors_url":"https://api.github.com/repos/google/crmint/contributors","subscribers_url":"https://api.github.com/repos/google/crmint/subscribers","subscription_url":"https://api.github.com/repos/google/crmint/subscription","commits_url":"https://api.github.com/repos/google/crmint/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/crmint/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/crmint/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/crmint/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/crmint/contents/{+path}","compare_url":"https://api.github.com/repos/google/crmint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/crmint/merges","archive_url":"https://api.github.com/repos/google/crmint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/crmint/downloads","issues_url":"https://api.github.com/repos/google/crmint/issues{/number}","pulls_url":"https://api.github.com/repos/google/crmint/pulls{/number}","milestones_url":"https://api.github.com/repos/google/crmint/milestones{/number}","notifications_url":"https://api.github.com/repos/google/crmint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/crmint/labels{/name}","releases_url":"https://api.github.com/repos/google/crmint/releases{/id}","deployments_url":"https://api.github.com/repos/google/crmint/deployments","created_at":"2018-06-27T09:01:33Z","updated_at":"2018-08-23T08:22:19Z","pushed_at":"2018-08-22T14:54:48Z","git_url":"git://github.com/google/crmint.git","ssh_url":"git@github.com:google/crmint.git","clone_url":"https://github.com/google/crmint.git","svn_url":"https://github.com/google/crmint","homepage":"","size":214,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":7,"open_issues":4,"watchers":9,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/google/crmint/pulls/19"},"html":{"href":"https://github.com/google/crmint/pull/19"},"issue":{"href":"https://api.github.com/repos/google/crmint/issues/19"},"comments":{"href":"https://api.github.com/repos/google/crmint/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/google/crmint/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/google/crmint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/crmint/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/google/crmint/statuses/ad2b3800cb997f69bd0c457c57b0a89bd5d6cdfa"}},"author_association":"NONE"}}
{"actor":{"display_login":"dulacp"}}