{"action":"created","comment":{"url":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/comments/58917477","id":58917477,"diff_hunk":"@@ -288,6 +290,23 @@ public void handle(String target, Request baseRequest, HttpServletRequest reques\n         metas.append(sb);\n         metas.append(\"\\n\");\n         gts++;\n+\n+        // Log detailed metrics for this GTS owner and app\n+        Map<String, String> labels = new HashMap<>();\n+\n+        String metaOwner = metadata.getLabels().get(Constants.OWNER_LABEL);","path":"warp10/src/main/java/io/warp10/standalone/StandaloneDeleteHandler.java","position":19,"original_position":19,"commit_id":"be5aba17c43e0a90799de0aef9d84651465ca717","original_commit_id":"be5aba17c43e0a90799de0aef9d84651465ca717","user":{"login":"hbs","id":236594,"avatar_url":"https://avatars.githubusercontent.com/u/236594?v=3","gravatar_id":"","url":"https://api.github.com/users/hbs","html_url":"https://github.com/hbs","followers_url":"https://api.github.com/users/hbs/followers","following_url":"https://api.github.com/users/hbs/following{/other_user}","gists_url":"https://api.github.com/users/hbs/gists{/gist_id}","starred_url":"https://api.github.com/users/hbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbs/subscriptions","organizations_url":"https://api.github.com/users/hbs/orgs","repos_url":"https://api.github.com/users/hbs/repos","events_url":"https://api.github.com/users/hbs/events{/privacy}","received_events_url":"https://api.github.com/users/hbs/received_events","type":"User","site_admin":false},"body":"Same here, owner and application are always set so those tests can be removed.","created_at":"2016-04-07T18:05:19Z","updated_at":"2016-04-07T18:05:19Z","html_url":"https://github.com/cityzendata/warp10-platform/pull/43#discussion_r58917477","pull_request_url":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/comments/58917477"},"html":{"href":"https://github.com/cityzendata/warp10-platform/pull/43#discussion_r58917477"},"pull_request":{"href":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/43","id":65659081,"html_url":"https://github.com/cityzendata/warp10-platform/pull/43","diff_url":"https://github.com/cityzendata/warp10-platform/pull/43.diff","patch_url":"https://github.com/cityzendata/warp10-platform/pull/43.patch","issue_url":"https://api.github.com/repos/cityzendata/warp10-platform/issues/43","number":43,"state":"open","locked":false,"title":"Added detailed deletion metrics","user":{"login":"swallez","id":213730,"avatar_url":"https://avatars.githubusercontent.com/u/213730?v=3","gravatar_id":"","url":"https://api.github.com/users/swallez","html_url":"https://github.com/swallez","followers_url":"https://api.github.com/users/swallez/followers","following_url":"https://api.github.com/users/swallez/following{/other_user}","gists_url":"https://api.github.com/users/swallez/gists{/gist_id}","starred_url":"https://api.github.com/users/swallez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swallez/subscriptions","organizations_url":"https://api.github.com/users/swallez/orgs","repos_url":"https://api.github.com/users/swallez/repos","events_url":"https://api.github.com/users/swallez/events{/privacy}","received_events_url":"https://api.github.com/users/swallez/received_events","type":"User","site_admin":false},"body":"For accounting purposes, I need to have a fine grained visibility on the number of points deleted by a particular user. This change reports in Sensision the count of deleted points associated to the owner (and app if present).\r\nThis is optional (and disabled by default) for the HBase version, and always active for the standalone version.","created_at":"2016-04-07T16:23:21Z","updated_at":"2016-04-07T18:05:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffa0af9f7eea862b0149008e3cd7da4e13d522dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/43/commits","review_comments_url":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/43/comments","review_comment_url":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cityzendata/warp10-platform/issues/43/comments","statuses_url":"https://api.github.com/repos/cityzendata/warp10-platform/statuses/be5aba17c43e0a90799de0aef9d84651465ca717","head":{"label":"swallez:detailed-deletion-metrics","ref":"detailed-deletion-metrics","sha":"be5aba17c43e0a90799de0aef9d84651465ca717","user":{"login":"swallez","id":213730,"avatar_url":"https://avatars.githubusercontent.com/u/213730?v=3","gravatar_id":"","url":"https://api.github.com/users/swallez","html_url":"https://github.com/swallez","followers_url":"https://api.github.com/users/swallez/followers","following_url":"https://api.github.com/users/swallez/following{/other_user}","gists_url":"https://api.github.com/users/swallez/gists{/gist_id}","starred_url":"https://api.github.com/users/swallez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swallez/subscriptions","organizations_url":"https://api.github.com/users/swallez/orgs","repos_url":"https://api.github.com/users/swallez/repos","events_url":"https://api.github.com/users/swallez/events{/privacy}","received_events_url":"https://api.github.com/users/swallez/received_events","type":"User","site_admin":false},"repo":{"id":55412068,"name":"warp10-platform","full_name":"swallez/warp10-platform","owner":{"login":"swallez","id":213730,"avatar_url":"https://avatars.githubusercontent.com/u/213730?v=3","gravatar_id":"","url":"https://api.github.com/users/swallez","html_url":"https://github.com/swallez","followers_url":"https://api.github.com/users/swallez/followers","following_url":"https://api.github.com/users/swallez/following{/other_user}","gists_url":"https://api.github.com/users/swallez/gists{/gist_id}","starred_url":"https://api.github.com/users/swallez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swallez/subscriptions","organizations_url":"https://api.github.com/users/swallez/orgs","repos_url":"https://api.github.com/users/swallez/repos","events_url":"https://api.github.com/users/swallez/events{/privacy}","received_events_url":"https://api.github.com/users/swallez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swallez/warp10-platform","description":"","fork":true,"url":"https://api.github.com/repos/swallez/warp10-platform","forks_url":"https://api.github.com/repos/swallez/warp10-platform/forks","keys_url":"https://api.github.com/repos/swallez/warp10-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swallez/warp10-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swallez/warp10-platform/teams","hooks_url":"https://api.github.com/repos/swallez/warp10-platform/hooks","issue_events_url":"https://api.github.com/repos/swallez/warp10-platform/issues/events{/number}","events_url":"https://api.github.com/repos/swallez/warp10-platform/events","assignees_url":"https://api.github.com/repos/swallez/warp10-platform/assignees{/user}","branches_url":"https://api.github.com/repos/swallez/warp10-platform/branches{/branch}","tags_url":"https://api.github.com/repos/swallez/warp10-platform/tags","blobs_url":"https://api.github.com/repos/swallez/warp10-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swallez/warp10-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swallez/warp10-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/swallez/warp10-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swallez/warp10-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/swallez/warp10-platform/languages","stargazers_url":"https://api.github.com/repos/swallez/warp10-platform/stargazers","contributors_url":"https://api.github.com/repos/swallez/warp10-platform/contributors","subscribers_url":"https://api.github.com/repos/swallez/warp10-platform/subscribers","subscription_url":"https://api.github.com/repos/swallez/warp10-platform/subscription","commits_url":"https://api.github.com/repos/swallez/warp10-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/swallez/warp10-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/swallez/warp10-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/swallez/warp10-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/swallez/warp10-platform/contents/{+path}","compare_url":"https://api.github.com/repos/swallez/warp10-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swallez/warp10-platform/merges","archive_url":"https://api.github.com/repos/swallez/warp10-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swallez/warp10-platform/downloads","issues_url":"https://api.github.com/repos/swallez/warp10-platform/issues{/number}","pulls_url":"https://api.github.com/repos/swallez/warp10-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/swallez/warp10-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/swallez/warp10-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swallez/warp10-platform/labels{/name}","releases_url":"https://api.github.com/repos/swallez/warp10-platform/releases{/id}","deployments_url":"https://api.github.com/repos/swallez/warp10-platform/deployments","created_at":"2016-04-04T13:10:56Z","updated_at":"2016-04-04T13:10:59Z","pushed_at":"2016-04-07T16:13:12Z","git_url":"git://github.com/swallez/warp10-platform.git","ssh_url":"git@github.com:swallez/warp10-platform.git","clone_url":"https://github.com/swallez/warp10-platform.git","svn_url":"https://github.com/swallez/warp10-platform","homepage":null,"size":1094,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cityzendata:master","ref":"master","sha":"b30384b46c45c147ee5de1e49f88c81c3252f086","user":{"login":"cityzendata","id":4659114,"avatar_url":"https://avatars.githubusercontent.com/u/4659114?v=3","gravatar_id":"","url":"https://api.github.com/users/cityzendata","html_url":"https://github.com/cityzendata","followers_url":"https://api.github.com/users/cityzendata/followers","following_url":"https://api.github.com/users/cityzendata/following{/other_user}","gists_url":"https://api.github.com/users/cityzendata/gists{/gist_id}","starred_url":"https://api.github.com/users/cityzendata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cityzendata/subscriptions","organizations_url":"https://api.github.com/users/cityzendata/orgs","repos_url":"https://api.github.com/users/cityzendata/repos","events_url":"https://api.github.com/users/cityzendata/events{/privacy}","received_events_url":"https://api.github.com/users/cityzendata/received_events","type":"User","site_admin":false},"repo":{"id":50594316,"name":"warp10-platform","full_name":"cityzendata/warp10-platform","owner":{"login":"cityzendata","id":4659114,"avatar_url":"https://avatars.githubusercontent.com/u/4659114?v=3","gravatar_id":"","url":"https://api.github.com/users/cityzendata","html_url":"https://github.com/cityzendata","followers_url":"https://api.github.com/users/cityzendata/followers","following_url":"https://api.github.com/users/cityzendata/following{/other_user}","gists_url":"https://api.github.com/users/cityzendata/gists{/gist_id}","starred_url":"https://api.github.com/users/cityzendata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cityzendata/subscriptions","organizations_url":"https://api.github.com/users/cityzendata/orgs","repos_url":"https://api.github.com/users/cityzendata/repos","events_url":"https://api.github.com/users/cityzendata/events{/privacy}","received_events_url":"https://api.github.com/users/cityzendata/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cityzendata/warp10-platform","description":"","fork":false,"url":"https://api.github.com/repos/cityzendata/warp10-platform","forks_url":"https://api.github.com/repos/cityzendata/warp10-platform/forks","keys_url":"https://api.github.com/repos/cityzendata/warp10-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cityzendata/warp10-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cityzendata/warp10-platform/teams","hooks_url":"https://api.github.com/repos/cityzendata/warp10-platform/hooks","issue_events_url":"https://api.github.com/repos/cityzendata/warp10-platform/issues/events{/number}","events_url":"https://api.github.com/repos/cityzendata/warp10-platform/events","assignees_url":"https://api.github.com/repos/cityzendata/warp10-platform/assignees{/user}","branches_url":"https://api.github.com/repos/cityzendata/warp10-platform/branches{/branch}","tags_url":"https://api.github.com/repos/cityzendata/warp10-platform/tags","blobs_url":"https://api.github.com/repos/cityzendata/warp10-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cityzendata/warp10-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cityzendata/warp10-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/cityzendata/warp10-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cityzendata/warp10-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/cityzendata/warp10-platform/languages","stargazers_url":"https://api.github.com/repos/cityzendata/warp10-platform/stargazers","contributors_url":"https://api.github.com/repos/cityzendata/warp10-platform/contributors","subscribers_url":"https://api.github.com/repos/cityzendata/warp10-platform/subscribers","subscription_url":"https://api.github.com/repos/cityzendata/warp10-platform/subscription","commits_url":"https://api.github.com/repos/cityzendata/warp10-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/cityzendata/warp10-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/cityzendata/warp10-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/cityzendata/warp10-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/cityzendata/warp10-platform/contents/{+path}","compare_url":"https://api.github.com/repos/cityzendata/warp10-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cityzendata/warp10-platform/merges","archive_url":"https://api.github.com/repos/cityzendata/warp10-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cityzendata/warp10-platform/downloads","issues_url":"https://api.github.com/repos/cityzendata/warp10-platform/issues{/number}","pulls_url":"https://api.github.com/repos/cityzendata/warp10-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/cityzendata/warp10-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/cityzendata/warp10-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cityzendata/warp10-platform/labels{/name}","releases_url":"https://api.github.com/repos/cityzendata/warp10-platform/releases{/id}","deployments_url":"https://api.github.com/repos/cityzendata/warp10-platform/deployments","created_at":"2016-01-28T15:56:55Z","updated_at":"2016-03-11T13:33:59Z","pushed_at":"2016-04-07T16:23:22Z","git_url":"git://github.com/cityzendata/warp10-platform.git","ssh_url":"git@github.com:cityzendata/warp10-platform.git","clone_url":"https://github.com/cityzendata/warp10-platform.git","svn_url":"https://github.com/cityzendata/warp10-platform","homepage":null,"size":1089,"stargazers_count":18,"watchers_count":18,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":4,"forks":10,"open_issues":4,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/43"},"html":{"href":"https://github.com/cityzendata/warp10-platform/pull/43"},"issue":{"href":"https://api.github.com/repos/cityzendata/warp10-platform/issues/43"},"comments":{"href":"https://api.github.com/repos/cityzendata/warp10-platform/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cityzendata/warp10-platform/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/cityzendata/warp10-platform/statuses/be5aba17c43e0a90799de0aef9d84651465ca717"}}}}