{"action":"created","comment":{"url":"https://api.github.com/repos/CartoDB/cartodb/pulls/comments/203686012","pull_request_review_id":138622403,"id":203686012,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzY4NjAxMg==","diff_hunk":"@@ -0,0 +1,6 @@\n+module VarnishCacheHandler\n+  def invalidate_varnish_cache(options = {})\n+    options[:regex] ||= '.*'\n+    CartoDB::Varnish.new.purge(\"#{database_name}#{options[:regex]}\")\n+  end\n+end","path":"app/models/varnish_cache_handler.rb","position":6,"original_position":6,"commit_id":"196ced67d3fef1198f67fa82ceced9d4820e49be","original_commit_id":"196ced67d3fef1198f67fa82ceced9d4820e49be","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Final newline missing.","created_at":"2018-07-19T11:04:24Z","updated_at":"2018-07-19T11:04:25Z","html_url":"https://github.com/CartoDB/cartodb/pull/14170#discussion_r203686012","pull_request_url":"https://api.github.com/repos/CartoDB/cartodb/pulls/14170","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/CartoDB/cartodb/pulls/comments/203686012"},"html":{"href":"https://github.com/CartoDB/cartodb/pull/14170#discussion_r203686012"},"pull_request":{"href":"https://api.github.com/repos/CartoDB/cartodb/pulls/14170"}}},"pull_request":{"url":"https://api.github.com/repos/CartoDB/cartodb/pulls/14170","id":201895920,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxODk1OTIw","html_url":"https://github.com/CartoDB/cartodb/pull/14170","diff_url":"https://github.com/CartoDB/cartodb/pull/14170.diff","patch_url":"https://github.com/CartoDB/cartodb/pull/14170.patch","issue_url":"https://api.github.com/repos/CartoDB/cartodb/issues/14170","number":14170,"state":"open","locked":false,"title":"5182 invalidate varnish on api key update","user":{"login":"amartinj","id":1821052,"node_id":"MDQ6VXNlcjE4MjEwNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1821052?v=4","gravatar_id":"","url":"https://api.github.com/users/amartinj","html_url":"https://github.com/amartinj","followers_url":"https://api.github.com/users/amartinj/followers","following_url":"https://api.github.com/users/amartinj/following{/other_user}","gists_url":"https://api.github.com/users/amartinj/gists{/gist_id}","starred_url":"https://api.github.com/users/amartinj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amartinj/subscriptions","organizations_url":"https://api.github.com/users/amartinj/orgs","repos_url":"https://api.github.com/users/amartinj/repos","events_url":"https://api.github.com/users/amartinj/events{/privacy}","received_events_url":"https://api.github.com/users/amartinj/received_events","type":"User","site_admin":false},"body":"Closes https://github.com/CartoDB/cartodb-management/issues/5182","created_at":"2018-07-17T10:32:17Z","updated_at":"2018-07-19T11:04:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47246f6ebb88631e77f356142b65b3d2add416ab","assignee":{"login":"amartinj","id":1821052,"node_id":"MDQ6VXNlcjE4MjEwNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1821052?v=4","gravatar_id":"","url":"https://api.github.com/users/amartinj","html_url":"https://github.com/amartinj","followers_url":"https://api.github.com/users/amartinj/followers","following_url":"https://api.github.com/users/amartinj/following{/other_user}","gists_url":"https://api.github.com/users/amartinj/gists{/gist_id}","starred_url":"https://api.github.com/users/amartinj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amartinj/subscriptions","organizations_url":"https://api.github.com/users/amartinj/orgs","repos_url":"https://api.github.com/users/amartinj/repos","events_url":"https://api.github.com/users/amartinj/events{/privacy}","received_events_url":"https://api.github.com/users/amartinj/received_events","type":"User","site_admin":false},"assignees":[{"login":"amartinj","id":1821052,"node_id":"MDQ6VXNlcjE4MjEwNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1821052?v=4","gravatar_id":"","url":"https://api.github.com/users/amartinj","html_url":"https://github.com/amartinj","followers_url":"https://api.github.com/users/amartinj/followers","following_url":"https://api.github.com/users/amartinj/following{/other_user}","gists_url":"https://api.github.com/users/amartinj/gists{/gist_id}","starred_url":"https://api.github.com/users/amartinj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amartinj/subscriptions","organizations_url":"https://api.github.com/users/amartinj/orgs","repos_url":"https://api.github.com/users/amartinj/repos","events_url":"https://api.github.com/users/amartinj/events{/privacy}","received_events_url":"https://api.github.com/users/amartinj/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CartoDB/cartodb/pulls/14170/commits","review_comments_url":"https://api.github.com/repos/CartoDB/cartodb/pulls/14170/comments","review_comment_url":"https://api.github.com/repos/CartoDB/cartodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/14170/comments","statuses_url":"https://api.github.com/repos/CartoDB/cartodb/statuses/196ced67d3fef1198f67fa82ceced9d4820e49be","head":{"label":"CartoDB:5182InvalidateVarnishOnApiKeyUpdate","ref":"5182InvalidateVarnishOnApiKeyUpdate","sha":"196ced67d3fef1198f67fa82ceced9d4820e49be","user":{"login":"CartoDB","id":1799254,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTkyNTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1799254?v=4","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"repo":{"id":4909355,"node_id":"MDEwOlJlcG9zaXRvcnk0OTA5MzU1","name":"cartodb","full_name":"CartoDB/cartodb","owner":{"login":"CartoDB","id":1799254,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTkyNTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1799254?v=4","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CartoDB/cartodb","description":"Location Intelligence & Data Visualization tool","fork":false,"url":"https://api.github.com/repos/CartoDB/cartodb","forks_url":"https://api.github.com/repos/CartoDB/cartodb/forks","keys_url":"https://api.github.com/repos/CartoDB/cartodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CartoDB/cartodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CartoDB/cartodb/teams","hooks_url":"https://api.github.com/repos/CartoDB/cartodb/hooks","issue_events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/events{/number}","events_url":"https://api.github.com/repos/CartoDB/cartodb/events","assignees_url":"https://api.github.com/repos/CartoDB/cartodb/assignees{/user}","branches_url":"https://api.github.com/repos/CartoDB/cartodb/branches{/branch}","tags_url":"https://api.github.com/repos/CartoDB/cartodb/tags","blobs_url":"https://api.github.com/repos/CartoDB/cartodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CartoDB/cartodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CartoDB/cartodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/CartoDB/cartodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CartoDB/cartodb/statuses/{sha}","languages_url":"https://api.github.com/repos/CartoDB/cartodb/languages","stargazers_url":"https://api.github.com/repos/CartoDB/cartodb/stargazers","contributors_url":"https://api.github.com/repos/CartoDB/cartodb/contributors","subscribers_url":"https://api.github.com/repos/CartoDB/cartodb/subscribers","subscription_url":"https://api.github.com/repos/CartoDB/cartodb/subscription","commits_url":"https://api.github.com/repos/CartoDB/cartodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/CartoDB/cartodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/CartoDB/cartodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/CartoDB/cartodb/contents/{+path}","compare_url":"https://api.github.com/repos/CartoDB/cartodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CartoDB/cartodb/merges","archive_url":"https://api.github.com/repos/CartoDB/cartodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CartoDB/cartodb/downloads","issues_url":"https://api.github.com/repos/CartoDB/cartodb/issues{/number}","pulls_url":"https://api.github.com/repos/CartoDB/cartodb/pulls{/number}","milestones_url":"https://api.github.com/repos/CartoDB/cartodb/milestones{/number}","notifications_url":"https://api.github.com/repos/CartoDB/cartodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CartoDB/cartodb/labels{/name}","releases_url":"https://api.github.com/repos/CartoDB/cartodb/releases{/id}","deployments_url":"https://api.github.com/repos/CartoDB/cartodb/deployments","created_at":"2012-07-05T15:23:45Z","updated_at":"2018-07-19T06:31:27Z","pushed_at":"2018-07-19T11:04:09Z","git_url":"git://github.com/CartoDB/cartodb.git","ssh_url":"git@github.com:CartoDB/cartodb.git","clone_url":"https://github.com/CartoDB/cartodb.git","svn_url":"https://github.com/CartoDB/cartodb","homepage":"http://carto.com","size":381762,"stargazers_count":1882,"watchers_count":1882,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":513,"mirror_url":null,"archived":false,"open_issues_count":404,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":513,"open_issues":404,"watchers":1882,"default_branch":"master"}},"base":{"label":"CartoDB:master","ref":"master","sha":"1fbee44c78e700e31758fd2fa5b950b7d5ff8288","user":{"login":"CartoDB","id":1799254,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTkyNTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1799254?v=4","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"repo":{"id":4909355,"node_id":"MDEwOlJlcG9zaXRvcnk0OTA5MzU1","name":"cartodb","full_name":"CartoDB/cartodb","owner":{"login":"CartoDB","id":1799254,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTkyNTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1799254?v=4","gravatar_id":"","url":"https://api.github.com/users/CartoDB","html_url":"https://github.com/CartoDB","followers_url":"https://api.github.com/users/CartoDB/followers","following_url":"https://api.github.com/users/CartoDB/following{/other_user}","gists_url":"https://api.github.com/users/CartoDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CartoDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CartoDB/subscriptions","organizations_url":"https://api.github.com/users/CartoDB/orgs","repos_url":"https://api.github.com/users/CartoDB/repos","events_url":"https://api.github.com/users/CartoDB/events{/privacy}","received_events_url":"https://api.github.com/users/CartoDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CartoDB/cartodb","description":"Location Intelligence & Data Visualization tool","fork":false,"url":"https://api.github.com/repos/CartoDB/cartodb","forks_url":"https://api.github.com/repos/CartoDB/cartodb/forks","keys_url":"https://api.github.com/repos/CartoDB/cartodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CartoDB/cartodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CartoDB/cartodb/teams","hooks_url":"https://api.github.com/repos/CartoDB/cartodb/hooks","issue_events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/events{/number}","events_url":"https://api.github.com/repos/CartoDB/cartodb/events","assignees_url":"https://api.github.com/repos/CartoDB/cartodb/assignees{/user}","branches_url":"https://api.github.com/repos/CartoDB/cartodb/branches{/branch}","tags_url":"https://api.github.com/repos/CartoDB/cartodb/tags","blobs_url":"https://api.github.com/repos/CartoDB/cartodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CartoDB/cartodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CartoDB/cartodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/CartoDB/cartodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CartoDB/cartodb/statuses/{sha}","languages_url":"https://api.github.com/repos/CartoDB/cartodb/languages","stargazers_url":"https://api.github.com/repos/CartoDB/cartodb/stargazers","contributors_url":"https://api.github.com/repos/CartoDB/cartodb/contributors","subscribers_url":"https://api.github.com/repos/CartoDB/cartodb/subscribers","subscription_url":"https://api.github.com/repos/CartoDB/cartodb/subscription","commits_url":"https://api.github.com/repos/CartoDB/cartodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/CartoDB/cartodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/CartoDB/cartodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/CartoDB/cartodb/contents/{+path}","compare_url":"https://api.github.com/repos/CartoDB/cartodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CartoDB/cartodb/merges","archive_url":"https://api.github.com/repos/CartoDB/cartodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CartoDB/cartodb/downloads","issues_url":"https://api.github.com/repos/CartoDB/cartodb/issues{/number}","pulls_url":"https://api.github.com/repos/CartoDB/cartodb/pulls{/number}","milestones_url":"https://api.github.com/repos/CartoDB/cartodb/milestones{/number}","notifications_url":"https://api.github.com/repos/CartoDB/cartodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CartoDB/cartodb/labels{/name}","releases_url":"https://api.github.com/repos/CartoDB/cartodb/releases{/id}","deployments_url":"https://api.github.com/repos/CartoDB/cartodb/deployments","created_at":"2012-07-05T15:23:45Z","updated_at":"2018-07-19T06:31:27Z","pushed_at":"2018-07-19T11:04:09Z","git_url":"git://github.com/CartoDB/cartodb.git","ssh_url":"git@github.com:CartoDB/cartodb.git","clone_url":"https://github.com/CartoDB/cartodb.git","svn_url":"https://github.com/CartoDB/cartodb","homepage":"http://carto.com","size":381762,"stargazers_count":1882,"watchers_count":1882,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":513,"mirror_url":null,"archived":false,"open_issues_count":404,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":513,"open_issues":404,"watchers":1882,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CartoDB/cartodb/pulls/14170"},"html":{"href":"https://github.com/CartoDB/cartodb/pull/14170"},"issue":{"href":"https://api.github.com/repos/CartoDB/cartodb/issues/14170"},"comments":{"href":"https://api.github.com/repos/CartoDB/cartodb/issues/14170/comments"},"review_comments":{"href":"https://api.github.com/repos/CartoDB/cartodb/pulls/14170/comments"},"review_comment":{"href":"https://api.github.com/repos/CartoDB/cartodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CartoDB/cartodb/pulls/14170/commits"},"statuses":{"href":"https://api.github.com/repos/CartoDB/cartodb/statuses/196ced67d3fef1198f67fa82ceced9d4820e49be"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}