{"action":"created","comment":{"url":"https://api.github.com/repos/elastic/kibana/pulls/comments/92277718","pull_request_review_id":12790481,"id":92277718,"diff_hunk":"@@ -0,0 +1,56 @@\n+import uiModules from 'ui/modules';\n+import heatmapOptionsTemplate from 'plugins/kbn_vislib_vis_types/controls/heatmap_options.html';\n+import _ from 'lodash';\n+const module = uiModules.get('kibana');\n+\n+module.directive('heatmapOptions', function ($parse, $compile, getAppState) {\n+  return {\n+    restrict: 'E',\n+    template: heatmapOptionsTemplate,\n+    replace: true,\n+    link: function ($scope) {\n+      $scope.isColorRangeOpen = true;\n+      $scope.customColors = false;\n+      $scope.options = {\n+        labels: false\n+      };\n+\n+      $scope.$watch('options.labels', rotate => {\n+        $scope.vis.params.valueAxes[0].labels.rotate = rotate ? 270 : 0;\n+      });\n+\n+      $scope.resetColors = () => {\n+        $scope.uiState.set('vis.colors', null);\n+        $scope.customColors = false;\n+      };\n+\n+      $scope.getGreaterThan = function (index) {\n+        if (index === 0) return -1;\n+        return $scope.vis.params.colorsRange[index - 1].to;\n+      };\n+\n+      $scope.addRange = function () {\n+        const from = $scope.vis.params.colorsRange.length ?\n+          $scope.vis.params.colorsRange[$scope.vis.params.colorsRange.length - 1].to : 0;","path":"src/core_plugins/kbn_vislib_vis_types/public/controls/heatmap_options.js","position":34,"original_position":34,"commit_id":"2edcf06f86511d2926d1547afa252a1c70c3d6e3","original_commit_id":"2edcf06f86511d2926d1547afa252a1c70c3d6e3","user":{"login":"thomasneirynck","id":1833023,"avatar_url":"https://avatars.githubusercontent.com/u/1833023?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasneirynck","html_url":"https://github.com/thomasneirynck","followers_url":"https://api.github.com/users/thomasneirynck/followers","following_url":"https://api.github.com/users/thomasneirynck/following{/other_user}","gists_url":"https://api.github.com/users/thomasneirynck/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasneirynck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasneirynck/subscriptions","organizations_url":"https://api.github.com/users/thomasneirynck/orgs","repos_url":"https://api.github.com/users/thomasneirynck/repos","events_url":"https://api.github.com/users/thomasneirynck/events{/privacy}","received_events_url":"https://api.github.com/users/thomasneirynck/received_events","type":"User","site_admin":false},"body":"format","created_at":"2016-12-13T22:06:30Z","updated_at":"2016-12-13T22:06:30Z","html_url":"https://github.com/elastic/kibana/pull/9403#discussion_r92277718","pull_request_url":"https://api.github.com/repos/elastic/kibana/pulls/9403","_links":{"self":{"href":"https://api.github.com/repos/elastic/kibana/pulls/comments/92277718"},"html":{"href":"https://github.com/elastic/kibana/pull/9403#discussion_r92277718"},"pull_request":{"href":"https://api.github.com/repos/elastic/kibana/pulls/9403"}}},"pull_request":{"url":"https://api.github.com/repos/elastic/kibana/pulls/9403","id":97001952,"html_url":"https://github.com/elastic/kibana/pull/9403","diff_url":"https://github.com/elastic/kibana/pull/9403.diff","patch_url":"https://github.com/elastic/kibana/pull/9403.patch","issue_url":"https://api.github.com/repos/elastic/kibana/issues/9403","number":9403,"state":"open","locked":false,"title":"Vislib heatmap visualization","user":{"login":"ppisljar","id":13629809,"avatar_url":"https://avatars.githubusercontent.com/u/13629809?v=3","gravatar_id":"","url":"https://api.github.com/users/ppisljar","html_url":"https://github.com/ppisljar","followers_url":"https://api.github.com/users/ppisljar/followers","following_url":"https://api.github.com/users/ppisljar/following{/other_user}","gists_url":"https://api.github.com/users/ppisljar/gists{/gist_id}","starred_url":"https://api.github.com/users/ppisljar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppisljar/subscriptions","organizations_url":"https://api.github.com/users/ppisljar/orgs","repos_url":"https://api.github.com/users/ppisljar/repos","events_url":"https://api.github.com/users/ppisljar/events{/privacy}","received_events_url":"https://api.github.com/users/ppisljar/received_events","type":"User","site_admin":false},"body":"Vislib heatmap visualization - adds new visualizaiton type to kibana - closes #1265 \r\n\r\n![screenshot-localhost 5601 2016-12-07 21-40-00](https://cloud.githubusercontent.com/assets/13629809/20985689/d1e07ed2-bcc5-11e6-804a-5f78d9b120eb.png)\r\n\r\n\r\n- [ ] review code style\r\n- [x] fix/add unit tests\r\n- [ ] fix/add selenium tests\r\n~~- [ ] extract styles to UI components~~\r\n","created_at":"2016-12-07T20:35:17Z","updated_at":"2016-12-13T22:06:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e16bcb962d58892a4d266099ab777edbee32dca4","assignee":{"login":"thomasneirynck","id":1833023,"avatar_url":"https://avatars.githubusercontent.com/u/1833023?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasneirynck","html_url":"https://github.com/thomasneirynck","followers_url":"https://api.github.com/users/thomasneirynck/followers","following_url":"https://api.github.com/users/thomasneirynck/following{/other_user}","gists_url":"https://api.github.com/users/thomasneirynck/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasneirynck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasneirynck/subscriptions","organizations_url":"https://api.github.com/users/thomasneirynck/orgs","repos_url":"https://api.github.com/users/thomasneirynck/repos","events_url":"https://api.github.com/users/thomasneirynck/events{/privacy}","received_events_url":"https://api.github.com/users/thomasneirynck/received_events","type":"User","site_admin":false},"assignees":[{"login":"thomasneirynck","id":1833023,"avatar_url":"https://avatars.githubusercontent.com/u/1833023?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasneirynck","html_url":"https://github.com/thomasneirynck","followers_url":"https://api.github.com/users/thomasneirynck/followers","following_url":"https://api.github.com/users/thomasneirynck/following{/other_user}","gists_url":"https://api.github.com/users/thomasneirynck/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasneirynck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasneirynck/subscriptions","organizations_url":"https://api.github.com/users/thomasneirynck/orgs","repos_url":"https://api.github.com/users/thomasneirynck/repos","events_url":"https://api.github.com/users/thomasneirynck/events{/privacy}","received_events_url":"https://api.github.com/users/thomasneirynck/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elastic/kibana/pulls/9403/commits","review_comments_url":"https://api.github.com/repos/elastic/kibana/pulls/9403/comments","review_comment_url":"https://api.github.com/repos/elastic/kibana/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/9403/comments","statuses_url":"https://api.github.com/repos/elastic/kibana/statuses/2edcf06f86511d2926d1547afa252a1c70c3d6e3","head":{"label":"ppisljar:vislib-heatmap","ref":"vislib-heatmap","sha":"2edcf06f86511d2926d1547afa252a1c70c3d6e3","user":{"login":"ppisljar","id":13629809,"avatar_url":"https://avatars.githubusercontent.com/u/13629809?v=3","gravatar_id":"","url":"https://api.github.com/users/ppisljar","html_url":"https://github.com/ppisljar","followers_url":"https://api.github.com/users/ppisljar/followers","following_url":"https://api.github.com/users/ppisljar/following{/other_user}","gists_url":"https://api.github.com/users/ppisljar/gists{/gist_id}","starred_url":"https://api.github.com/users/ppisljar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppisljar/subscriptions","organizations_url":"https://api.github.com/users/ppisljar/orgs","repos_url":"https://api.github.com/users/ppisljar/repos","events_url":"https://api.github.com/users/ppisljar/events{/privacy}","received_events_url":"https://api.github.com/users/ppisljar/received_events","type":"User","site_admin":false},"repo":{"id":62579218,"name":"kibana","full_name":"ppisljar/kibana","owner":{"login":"ppisljar","id":13629809,"avatar_url":"https://avatars.githubusercontent.com/u/13629809?v=3","gravatar_id":"","url":"https://api.github.com/users/ppisljar","html_url":"https://github.com/ppisljar","followers_url":"https://api.github.com/users/ppisljar/followers","following_url":"https://api.github.com/users/ppisljar/following{/other_user}","gists_url":"https://api.github.com/users/ppisljar/gists{/gist_id}","starred_url":"https://api.github.com/users/ppisljar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppisljar/subscriptions","organizations_url":"https://api.github.com/users/ppisljar/orgs","repos_url":"https://api.github.com/users/ppisljar/repos","events_url":"https://api.github.com/users/ppisljar/events{/privacy}","received_events_url":"https://api.github.com/users/ppisljar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ppisljar/kibana","description":":bar_chart: Kibana analytics and search dashboard for Elasticsearch","fork":true,"url":"https://api.github.com/repos/ppisljar/kibana","forks_url":"https://api.github.com/repos/ppisljar/kibana/forks","keys_url":"https://api.github.com/repos/ppisljar/kibana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppisljar/kibana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppisljar/kibana/teams","hooks_url":"https://api.github.com/repos/ppisljar/kibana/hooks","issue_events_url":"https://api.github.com/repos/ppisljar/kibana/issues/events{/number}","events_url":"https://api.github.com/repos/ppisljar/kibana/events","assignees_url":"https://api.github.com/repos/ppisljar/kibana/assignees{/user}","branches_url":"https://api.github.com/repos/ppisljar/kibana/branches{/branch}","tags_url":"https://api.github.com/repos/ppisljar/kibana/tags","blobs_url":"https://api.github.com/repos/ppisljar/kibana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppisljar/kibana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppisljar/kibana/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppisljar/kibana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppisljar/kibana/statuses/{sha}","languages_url":"https://api.github.com/repos/ppisljar/kibana/languages","stargazers_url":"https://api.github.com/repos/ppisljar/kibana/stargazers","contributors_url":"https://api.github.com/repos/ppisljar/kibana/contributors","subscribers_url":"https://api.github.com/repos/ppisljar/kibana/subscribers","subscription_url":"https://api.github.com/repos/ppisljar/kibana/subscription","commits_url":"https://api.github.com/repos/ppisljar/kibana/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppisljar/kibana/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppisljar/kibana/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppisljar/kibana/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppisljar/kibana/contents/{+path}","compare_url":"https://api.github.com/repos/ppisljar/kibana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppisljar/kibana/merges","archive_url":"https://api.github.com/repos/ppisljar/kibana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppisljar/kibana/downloads","issues_url":"https://api.github.com/repos/ppisljar/kibana/issues{/number}","pulls_url":"https://api.github.com/repos/ppisljar/kibana/pulls{/number}","milestones_url":"https://api.github.com/repos/ppisljar/kibana/milestones{/number}","notifications_url":"https://api.github.com/repos/ppisljar/kibana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppisljar/kibana/labels{/name}","releases_url":"https://api.github.com/repos/ppisljar/kibana/releases{/id}","deployments_url":"https://api.github.com/repos/ppisljar/kibana/deployments","created_at":"2016-07-04T17:45:16Z","updated_at":"2016-07-04T17:45:22Z","pushed_at":"2016-12-13T18:26:41Z","git_url":"git://github.com/ppisljar/kibana.git","ssh_url":"git@github.com:ppisljar/kibana.git","clone_url":"https://github.com/ppisljar/kibana.git","svn_url":"https://github.com/ppisljar/kibana","homepage":"https://www.elastic.co/products/kibana","size":222663,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"elastic:master","ref":"master","sha":"2f6654bcec1db4f74a673906f5819581b94279ee","user":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":7833168,"name":"kibana","full_name":"elastic/kibana","owner":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/kibana","description":":bar_chart: Kibana analytics and search dashboard for Elasticsearch","fork":false,"url":"https://api.github.com/repos/elastic/kibana","forks_url":"https://api.github.com/repos/elastic/kibana/forks","keys_url":"https://api.github.com/repos/elastic/kibana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/kibana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/kibana/teams","hooks_url":"https://api.github.com/repos/elastic/kibana/hooks","issue_events_url":"https://api.github.com/repos/elastic/kibana/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/kibana/events","assignees_url":"https://api.github.com/repos/elastic/kibana/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/kibana/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/kibana/tags","blobs_url":"https://api.github.com/repos/elastic/kibana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/kibana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/kibana/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/kibana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/kibana/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/kibana/languages","stargazers_url":"https://api.github.com/repos/elastic/kibana/stargazers","contributors_url":"https://api.github.com/repos/elastic/kibana/contributors","subscribers_url":"https://api.github.com/repos/elastic/kibana/subscribers","subscription_url":"https://api.github.com/repos/elastic/kibana/subscription","commits_url":"https://api.github.com/repos/elastic/kibana/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/kibana/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/kibana/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/kibana/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/kibana/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/kibana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/kibana/merges","archive_url":"https://api.github.com/repos/elastic/kibana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/kibana/downloads","issues_url":"https://api.github.com/repos/elastic/kibana/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/kibana/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/kibana/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/kibana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/kibana/labels{/name}","releases_url":"https://api.github.com/repos/elastic/kibana/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/kibana/deployments","created_at":"2013-01-26T04:00:59Z","updated_at":"2016-12-13T18:34:54Z","pushed_at":"2016-12-13T21:41:58Z","git_url":"git://github.com/elastic/kibana.git","ssh_url":"git@github.com:elastic/kibana.git","clone_url":"https://github.com/elastic/kibana.git","svn_url":"https://github.com/elastic/kibana","homepage":"https://www.elastic.co/products/kibana","size":223144,"stargazers_count":6469,"watchers_count":6469,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2395,"mirror_url":null,"open_issues_count":1354,"forks":2395,"open_issues":1354,"watchers":6469,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/kibana/pulls/9403"},"html":{"href":"https://github.com/elastic/kibana/pull/9403"},"issue":{"href":"https://api.github.com/repos/elastic/kibana/issues/9403"},"comments":{"href":"https://api.github.com/repos/elastic/kibana/issues/9403/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/kibana/pulls/9403/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/kibana/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/kibana/pulls/9403/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/kibana/statuses/2edcf06f86511d2926d1547afa252a1c70c3d6e3"}}}}
{"actor":{"display_login":"thomasneirynck"}}