{"action":"created","comment":{"url":"https://api.github.com/repos/linkedin/pinot/pulls/comments/171117522","pull_request_review_id":99914497,"id":171117522,"diff_hunk":"@@ -1,4 +1,77 @@\n import Route from '@ember/routing/route';\n+import applicationAnomalies from 'thirdeye-frontend/mocks/applicationAnomalies';\n+import columns from 'thirdeye-frontend/shared/anomaliesTableColumns';\n \n export default Route.extend({\n+\n+  /**\n+   * Returns a two-dimensional array, which maps anomalies by metric and functionName (aka alert)\n+   * @example\n+   * [\n+   *  \"Metric 1\": [\n+   *    \"Alert 1\": [ {anomalyObject}, {anomalyObject} ],\n+   *    \"Alert 11\": [ {anomalyObject}, {anomalyObject} ]\n+   *  ],\n+   *  \"Metric 2\": [\n+   *    \"Alert 21\": [ {anomalyObject}, {anomalyObject} ],\n+   *    \"Alert 22\": [ {anomalyObject}, {anomalyObject} ]\n+   *   ]\n+   * ]\n+   */\n+  model() {\n+    let anomalyMapping = [];\n+\n+    applicationAnomalies.forEach(anomaly => {\n+      const { metric, functionName, current, baseline } = anomaly;\n+      const value = {\n+        current,\n+        baseline\n+      };\n+\n+      if (!anomalyMapping[metric]) {\n+        anomalyMapping[metric] = [];","path":"thirdeye/thirdeye-frontend/app/pods/home/route.js","position":33,"original_position":32,"commit_id":"30d0d3f065a76b6582dec08ed0a0bacf5d0d0ef3","original_commit_id":"bd573b1a15816381ca2f03600ad38176fa8c918c","user":{"login":"apucher","id":25439965,"avatar_url":"https://avatars3.githubusercontent.com/u/25439965?v=4","gravatar_id":"","url":"https://api.github.com/users/apucher","html_url":"https://github.com/apucher","followers_url":"https://api.github.com/users/apucher/followers","following_url":"https://api.github.com/users/apucher/following{/other_user}","gists_url":"https://api.github.com/users/apucher/gists{/gist_id}","starred_url":"https://api.github.com/users/apucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apucher/subscriptions","organizations_url":"https://api.github.com/users/apucher/orgs","repos_url":"https://api.github.com/users/apucher/repos","events_url":"https://api.github.com/users/apucher/events{/privacy}","received_events_url":"https://api.github.com/users/apucher/received_events","type":"User","site_admin":false},"body":"+1 I think this should be {} instead","created_at":"2018-02-28T01:04:50Z","updated_at":"2018-02-28T01:04:51Z","html_url":"https://github.com/linkedin/pinot/pull/2548#discussion_r171117522","pull_request_url":"https://api.github.com/repos/linkedin/pinot/pulls/2548","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/linkedin/pinot/pulls/comments/171117522"},"html":{"href":"https://github.com/linkedin/pinot/pull/2548#discussion_r171117522"},"pull_request":{"href":"https://api.github.com/repos/linkedin/pinot/pulls/2548"}},"in_reply_to_id":171117091},"pull_request":{"url":"https://api.github.com/repos/linkedin/pinot/pulls/2548","id":171826242,"html_url":"https://github.com/linkedin/pinot/pull/2548","diff_url":"https://github.com/linkedin/pinot/pull/2548.diff","patch_url":"https://github.com/linkedin/pinot/pull/2548.patch","issue_url":"https://api.github.com/repos/linkedin/pinot/issues/2548","number":2548,"state":"open","locked":false,"title":"[TE] frontend - Ttbach/mock data for alerts dashboard","user":{"login":"ttbach","id":6884406,"avatar_url":"https://avatars1.githubusercontent.com/u/6884406?v=4","gravatar_id":"","url":"https://api.github.com/users/ttbach","html_url":"https://github.com/ttbach","followers_url":"https://api.github.com/users/ttbach/followers","following_url":"https://api.github.com/users/ttbach/following{/other_user}","gists_url":"https://api.github.com/users/ttbach/gists{/gist_id}","starred_url":"https://api.github.com/users/ttbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttbach/subscriptions","organizations_url":"https://api.github.com/users/ttbach/orgs","repos_url":"https://api.github.com/users/ttbach/repos","events_url":"https://api.github.com/users/ttbach/events{/privacy}","received_events_url":"https://api.github.com/users/ttbach/received_events","type":"User","site_admin":false},"body":"# What's New\r\n- Added mock data that returns an application's list of anomalies\r\n- Did some data massaging in `/home`'s route\r\n - Moved `te-anomaly-table` styles to a separate file to reuse in future PR\r\n<img width=\"1214\" alt=\"screen shot 2018-02-27 at 4 44 13 pm\" src=\"https://user-images.githubusercontent.com/6884406/36763590-7caccf1a-1bdd-11e8-9c35-f911c776d3b2.png\">\r\n\r\n# Note\r\nThere are some stub code that is there to be replaced in subsequent PRs","created_at":"2018-02-28T00:41:35Z","updated_at":"2018-02-28T01:04:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"587f05f5c9a65fa24c703281218b148766cda41b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"newsummit","id":11814420,"avatar_url":"https://avatars2.githubusercontent.com/u/11814420?v=4","gravatar_id":"","url":"https://api.github.com/users/newsummit","html_url":"https://github.com/newsummit","followers_url":"https://api.github.com/users/newsummit/followers","following_url":"https://api.github.com/users/newsummit/following{/other_user}","gists_url":"https://api.github.com/users/newsummit/gists{/gist_id}","starred_url":"https://api.github.com/users/newsummit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsummit/subscriptions","organizations_url":"https://api.github.com/users/newsummit/orgs","repos_url":"https://api.github.com/users/newsummit/repos","events_url":"https://api.github.com/users/newsummit/events{/privacy}","received_events_url":"https://api.github.com/users/newsummit/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/linkedin/pinot/pulls/2548/commits","review_comments_url":"https://api.github.com/repos/linkedin/pinot/pulls/2548/comments","review_comment_url":"https://api.github.com/repos/linkedin/pinot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linkedin/pinot/issues/2548/comments","statuses_url":"https://api.github.com/repos/linkedin/pinot/statuses/30d0d3f065a76b6582dec08ed0a0bacf5d0d0ef3","head":{"label":"ttbach:ttbach/mock-data-for-alerts-dashboard","ref":"ttbach/mock-data-for-alerts-dashboard","sha":"30d0d3f065a76b6582dec08ed0a0bacf5d0d0ef3","user":{"login":"ttbach","id":6884406,"avatar_url":"https://avatars1.githubusercontent.com/u/6884406?v=4","gravatar_id":"","url":"https://api.github.com/users/ttbach","html_url":"https://github.com/ttbach","followers_url":"https://api.github.com/users/ttbach/followers","following_url":"https://api.github.com/users/ttbach/following{/other_user}","gists_url":"https://api.github.com/users/ttbach/gists{/gist_id}","starred_url":"https://api.github.com/users/ttbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttbach/subscriptions","organizations_url":"https://api.github.com/users/ttbach/orgs","repos_url":"https://api.github.com/users/ttbach/repos","events_url":"https://api.github.com/users/ttbach/events{/privacy}","received_events_url":"https://api.github.com/users/ttbach/received_events","type":"User","site_admin":false},"repo":{"id":108032316,"name":"pinot","full_name":"ttbach/pinot","owner":{"login":"ttbach","id":6884406,"avatar_url":"https://avatars1.githubusercontent.com/u/6884406?v=4","gravatar_id":"","url":"https://api.github.com/users/ttbach","html_url":"https://github.com/ttbach","followers_url":"https://api.github.com/users/ttbach/followers","following_url":"https://api.github.com/users/ttbach/following{/other_user}","gists_url":"https://api.github.com/users/ttbach/gists{/gist_id}","starred_url":"https://api.github.com/users/ttbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttbach/subscriptions","organizations_url":"https://api.github.com/users/ttbach/orgs","repos_url":"https://api.github.com/users/ttbach/repos","events_url":"https://api.github.com/users/ttbach/events{/privacy}","received_events_url":"https://api.github.com/users/ttbach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ttbach/pinot","description":"A realtime distributed OLAP datastore","fork":true,"url":"https://api.github.com/repos/ttbach/pinot","forks_url":"https://api.github.com/repos/ttbach/pinot/forks","keys_url":"https://api.github.com/repos/ttbach/pinot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ttbach/pinot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ttbach/pinot/teams","hooks_url":"https://api.github.com/repos/ttbach/pinot/hooks","issue_events_url":"https://api.github.com/repos/ttbach/pinot/issues/events{/number}","events_url":"https://api.github.com/repos/ttbach/pinot/events","assignees_url":"https://api.github.com/repos/ttbach/pinot/assignees{/user}","branches_url":"https://api.github.com/repos/ttbach/pinot/branches{/branch}","tags_url":"https://api.github.com/repos/ttbach/pinot/tags","blobs_url":"https://api.github.com/repos/ttbach/pinot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ttbach/pinot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ttbach/pinot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ttbach/pinot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ttbach/pinot/statuses/{sha}","languages_url":"https://api.github.com/repos/ttbach/pinot/languages","stargazers_url":"https://api.github.com/repos/ttbach/pinot/stargazers","contributors_url":"https://api.github.com/repos/ttbach/pinot/contributors","subscribers_url":"https://api.github.com/repos/ttbach/pinot/subscribers","subscription_url":"https://api.github.com/repos/ttbach/pinot/subscription","commits_url":"https://api.github.com/repos/ttbach/pinot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ttbach/pinot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ttbach/pinot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ttbach/pinot/issues/comments{/number}","contents_url":"https://api.github.com/repos/ttbach/pinot/contents/{+path}","compare_url":"https://api.github.com/repos/ttbach/pinot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ttbach/pinot/merges","archive_url":"https://api.github.com/repos/ttbach/pinot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ttbach/pinot/downloads","issues_url":"https://api.github.com/repos/ttbach/pinot/issues{/number}","pulls_url":"https://api.github.com/repos/ttbach/pinot/pulls{/number}","milestones_url":"https://api.github.com/repos/ttbach/pinot/milestones{/number}","notifications_url":"https://api.github.com/repos/ttbach/pinot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ttbach/pinot/labels{/name}","releases_url":"https://api.github.com/repos/ttbach/pinot/releases{/id}","deployments_url":"https://api.github.com/repos/ttbach/pinot/deployments","created_at":"2017-10-23T19:55:38Z","updated_at":"2017-10-23T19:55:48Z","pushed_at":"2018-02-28T00:57:07Z","git_url":"git://github.com/ttbach/pinot.git","ssh_url":"git@github.com:ttbach/pinot.git","clone_url":"https://github.com/ttbach/pinot.git","svn_url":"https://github.com/ttbach/pinot","homepage":"https://github.com/linkedin/pinot/wiki","size":146514,"stargazers_count":0,"watchers_count":0,"language":"Java","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"linkedin:master","ref":"master","sha":"2a4c18ba93ee94e68702086362ed6c5f82d00800","user":{"login":"linkedin","id":357098,"avatar_url":"https://avatars3.githubusercontent.com/u/357098?v=4","gravatar_id":"","url":"https://api.github.com/users/linkedin","html_url":"https://github.com/linkedin","followers_url":"https://api.github.com/users/linkedin/followers","following_url":"https://api.github.com/users/linkedin/following{/other_user}","gists_url":"https://api.github.com/users/linkedin/gists{/gist_id}","starred_url":"https://api.github.com/users/linkedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkedin/subscriptions","organizations_url":"https://api.github.com/users/linkedin/orgs","repos_url":"https://api.github.com/users/linkedin/repos","events_url":"https://api.github.com/users/linkedin/events{/privacy}","received_events_url":"https://api.github.com/users/linkedin/received_events","type":"Organization","site_admin":false},"repo":{"id":19961085,"name":"pinot","full_name":"linkedin/pinot","owner":{"login":"linkedin","id":357098,"avatar_url":"https://avatars3.githubusercontent.com/u/357098?v=4","gravatar_id":"","url":"https://api.github.com/users/linkedin","html_url":"https://github.com/linkedin","followers_url":"https://api.github.com/users/linkedin/followers","following_url":"https://api.github.com/users/linkedin/following{/other_user}","gists_url":"https://api.github.com/users/linkedin/gists{/gist_id}","starred_url":"https://api.github.com/users/linkedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkedin/subscriptions","organizations_url":"https://api.github.com/users/linkedin/orgs","repos_url":"https://api.github.com/users/linkedin/repos","events_url":"https://api.github.com/users/linkedin/events{/privacy}","received_events_url":"https://api.github.com/users/linkedin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linkedin/pinot","description":"A realtime distributed OLAP datastore","fork":false,"url":"https://api.github.com/repos/linkedin/pinot","forks_url":"https://api.github.com/repos/linkedin/pinot/forks","keys_url":"https://api.github.com/repos/linkedin/pinot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linkedin/pinot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linkedin/pinot/teams","hooks_url":"https://api.github.com/repos/linkedin/pinot/hooks","issue_events_url":"https://api.github.com/repos/linkedin/pinot/issues/events{/number}","events_url":"https://api.github.com/repos/linkedin/pinot/events","assignees_url":"https://api.github.com/repos/linkedin/pinot/assignees{/user}","branches_url":"https://api.github.com/repos/linkedin/pinot/branches{/branch}","tags_url":"https://api.github.com/repos/linkedin/pinot/tags","blobs_url":"https://api.github.com/repos/linkedin/pinot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linkedin/pinot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linkedin/pinot/git/refs{/sha}","trees_url":"https://api.github.com/repos/linkedin/pinot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linkedin/pinot/statuses/{sha}","languages_url":"https://api.github.com/repos/linkedin/pinot/languages","stargazers_url":"https://api.github.com/repos/linkedin/pinot/stargazers","contributors_url":"https://api.github.com/repos/linkedin/pinot/contributors","subscribers_url":"https://api.github.com/repos/linkedin/pinot/subscribers","subscription_url":"https://api.github.com/repos/linkedin/pinot/subscription","commits_url":"https://api.github.com/repos/linkedin/pinot/commits{/sha}","git_commits_url":"https://api.github.com/repos/linkedin/pinot/git/commits{/sha}","comments_url":"https://api.github.com/repos/linkedin/pinot/comments{/number}","issue_comment_url":"https://api.github.com/repos/linkedin/pinot/issues/comments{/number}","contents_url":"https://api.github.com/repos/linkedin/pinot/contents/{+path}","compare_url":"https://api.github.com/repos/linkedin/pinot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linkedin/pinot/merges","archive_url":"https://api.github.com/repos/linkedin/pinot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linkedin/pinot/downloads","issues_url":"https://api.github.com/repos/linkedin/pinot/issues{/number}","pulls_url":"https://api.github.com/repos/linkedin/pinot/pulls{/number}","milestones_url":"https://api.github.com/repos/linkedin/pinot/milestones{/number}","notifications_url":"https://api.github.com/repos/linkedin/pinot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linkedin/pinot/labels{/name}","releases_url":"https://api.github.com/repos/linkedin/pinot/releases{/id}","deployments_url":"https://api.github.com/repos/linkedin/pinot/deployments","created_at":"2014-05-19T23:27:48Z","updated_at":"2018-02-27T23:51:53Z","pushed_at":"2018-02-28T00:59:20Z","git_url":"git://github.com/linkedin/pinot.git","ssh_url":"git@github.com:linkedin/pinot.git","clone_url":"https://github.com/linkedin/pinot.git","svn_url":"https://github.com/linkedin/pinot","homepage":"https://github.com/linkedin/pinot/wiki","size":147903,"stargazers_count":1759,"watchers_count":1759,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":319,"mirror_url":null,"archived":false,"open_issues_count":154,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":319,"open_issues":154,"watchers":1759,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linkedin/pinot/pulls/2548"},"html":{"href":"https://github.com/linkedin/pinot/pull/2548"},"issue":{"href":"https://api.github.com/repos/linkedin/pinot/issues/2548"},"comments":{"href":"https://api.github.com/repos/linkedin/pinot/issues/2548/comments"},"review_comments":{"href":"https://api.github.com/repos/linkedin/pinot/pulls/2548/comments"},"review_comment":{"href":"https://api.github.com/repos/linkedin/pinot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linkedin/pinot/pulls/2548/commits"},"statuses":{"href":"https://api.github.com/repos/linkedin/pinot/statuses/30d0d3f065a76b6582dec08ed0a0bacf5d0d0ef3"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"apucher"}}