{"action":"created","issue":{"url":"https://api.github.com/repos/mobz/elasticsearch-head/issues/185","labels_url":"https://api.github.com/repos/mobz/elasticsearch-head/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/mobz/elasticsearch-head/issues/185/comments","events_url":"https://api.github.com/repos/mobz/elasticsearch-head/issues/185/events","html_url":"https://github.com/mobz/elasticsearch-head/pull/185","id":54881841,"number":185,"title":"Use '_cluster/health' endpoint to compute ES cluster colour (#147)","user":{"login":"jbbarth","id":29363,"avatar_url":"https://avatars.githubusercontent.com/u/29363?v=3","gravatar_id":"","url":"https://api.github.com/users/jbbarth","html_url":"https://github.com/jbbarth","followers_url":"https://api.github.com/users/jbbarth/followers","following_url":"https://api.github.com/users/jbbarth/following{/other_user}","gists_url":"https://api.github.com/users/jbbarth/gists{/gist_id}","starred_url":"https://api.github.com/users/jbbarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbbarth/subscriptions","organizations_url":"https://api.github.com/users/jbbarth/orgs","repos_url":"https://api.github.com/users/jbbarth/repos","events_url":"https://api.github.com/users/jbbarth/events{/privacy}","received_events_url":"https://api.github.com/users/jbbarth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-20T13:19:24Z","updated_at":"2015-03-04T03:49:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mobz/elasticsearch-head/pulls/185","html_url":"https://github.com/mobz/elasticsearch-head/pull/185","diff_url":"https://github.com/mobz/elasticsearch-head/pull/185.diff","patch_url":"https://github.com/mobz/elasticsearch-head/pull/185.patch"},"body":"The idea behind this pull request is to use the `_cluster/health` endpoint so that the plugin reflects the colour of the cluster computed on the ES side, instead of deducing it from the shards count. As said in #147 shards can be initializing or relocating which makes the plugin not display the \"correct\" colour.\r\n\r\nOn the implementation side I'm not very familiar with JS development so I mostly adapted/completed existing sections. The plugin works for me on my local machine as is, but of course your critic eye on this is very welcome. Also note that I didn't know how to run the tests nor to add some tests here, let me know if I can complete this PR with some tests, I'd be more than happy to do that with some guidance.\r\n\r\nAnyway, thank you very much for an awesome plugin, I couldn't do my job without it !!!\r\n\r\nPS: I had troubles building the plugin at first, I had to install a bunch of packages that didn't install through `npm install`, actually: `npm install gaze cookie-signature grunt-lib-phantomjs tiny-lr bytes chalk debug lodash send rimraf` ; let me know if I need to open an other issue or PR for this."},"comment":{"url":"https://api.github.com/repos/mobz/elasticsearch-head/issues/comments/77092589","html_url":"https://github.com/mobz/elasticsearch-head/pull/185#issuecomment-77092589","issue_url":"https://api.github.com/repos/mobz/elasticsearch-head/issues/185","id":77092589,"user":{"login":"smashew","id":1704705,"avatar_url":"https://avatars.githubusercontent.com/u/1704705?v=3","gravatar_id":"","url":"https://api.github.com/users/smashew","html_url":"https://github.com/smashew","followers_url":"https://api.github.com/users/smashew/followers","following_url":"https://api.github.com/users/smashew/following{/other_user}","gists_url":"https://api.github.com/users/smashew/gists{/gist_id}","starred_url":"https://api.github.com/users/smashew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashew/subscriptions","organizations_url":"https://api.github.com/users/smashew/orgs","repos_url":"https://api.github.com/users/smashew/repos","events_url":"https://api.github.com/users/smashew/events{/privacy}","received_events_url":"https://api.github.com/users/smashew/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T03:49:42Z","updated_at":"2015-03-04T03:49:42Z","body":":+1:"}}