{"action":"created","comment":{"url":"https://api.github.com/repos/Gizra/negawatt-server/pulls/comments/23159266","id":23159266,"diff_hunk":"@@ -8,17 +8,36 @@\n  * Controller of the negawattClientApp\n  */\n angular.module('negawattClientApp')\n-  .controller('CategoryCtrl', function ($scope, $state, ChartCategories, categoriesChart, categories) {\n-    var categoryId;\n-    $scope.categoriesChart = categoriesChart;\n+  .controller('CategoryCtrl', function ($scope, $state, $stateParams, Category, categories) {\n     $scope.categories = categories;\n+    $scope.allCategories = angular.copy(categories);","path":"client/app/scripts/controllers/category.js","position":9,"original_position":9,"commit_id":"62cc419ea8750f1aa08a1eb6695467da50ec5ff0","original_commit_id":"62cc419ea8750f1aa08a1eb6695467da50ec5ff0","user":{"login":"amitaibu","id":125707,"avatar_url":"https://avatars.githubusercontent.com/u/125707?v=3","gravatar_id":"","url":"https://api.github.com/users/amitaibu","html_url":"https://github.com/amitaibu","followers_url":"https://api.github.com/users/amitaibu/followers","following_url":"https://api.github.com/users/amitaibu/following{/other_user}","gists_url":"https://api.github.com/users/amitaibu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitaibu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitaibu/subscriptions","organizations_url":"https://api.github.com/users/amitaibu/orgs","repos_url":"https://api.github.com/users/amitaibu/repos","events_url":"https://api.github.com/users/amitaibu/events{/privacy}","received_events_url":"https://api.github.com/users/amitaibu/received_events","type":"User","site_admin":false},"body":"check if possible to remove.","created_at":"2015-01-19T13:21:03Z","updated_at":"2015-01-19T13:21:03Z","html_url":"https://github.com/Gizra/negawatt-server/pull/267#discussion_r23159266","pull_request_url":"https://api.github.com/repos/Gizra/negawatt-server/pulls/267","_links":{"self":{"href":"https://api.github.com/repos/Gizra/negawatt-server/pulls/comments/23159266"},"html":{"href":"https://github.com/Gizra/negawatt-server/pull/267#discussion_r23159266"},"pull_request":{"href":"https://api.github.com/repos/Gizra/negawatt-server/pulls/267"}}},"pull_request":{"url":"https://api.github.com/repos/Gizra/negawatt-server/pulls/267","id":26962100,"html_url":"https://github.com/Gizra/negawatt-server/pull/267","diff_url":"https://github.com/Gizra/negawatt-server/pull/267.diff","patch_url":"https://github.com/Gizra/negawatt-server/pull/267.patch","issue_url":"https://api.github.com/repos/Gizra/negawatt-server/issues/267","number":267,"state":"open","locked":false,"title":"refactor: router system.","user":{"login":"ceoaliongroo","id":2622152,"avatar_url":"https://avatars.githubusercontent.com/u/2622152?v=3","gravatar_id":"","url":"https://api.github.com/users/ceoaliongroo","html_url":"https://github.com/ceoaliongroo","followers_url":"https://api.github.com/users/ceoaliongroo/followers","following_url":"https://api.github.com/users/ceoaliongroo/following{/other_user}","gists_url":"https://api.github.com/users/ceoaliongroo/gists{/gist_id}","starred_url":"https://api.github.com/users/ceoaliongroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceoaliongroo/subscriptions","organizations_url":"https://api.github.com/users/ceoaliongroo/orgs","repos_url":"https://api.github.com/users/ceoaliongroo/repos","events_url":"https://api.github.com/users/ceoaliongroo/events{/privacy}","received_events_url":"https://api.github.com/users/ceoaliongroo/received_events","type":"User","site_admin":false},"body":"#238, #239, #259, #240, #249, #261, #270 ","created_at":"2015-01-07T14:59:47Z","updated_at":"2015-01-19T13:21:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe91194535abecdbf9332bab43a0911ca15e0e7b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Gizra/negawatt-server/pulls/267/commits","review_comments_url":"https://api.github.com/repos/Gizra/negawatt-server/pulls/267/comments","review_comment_url":"https://api.github.com/repos/Gizra/negawatt-server/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Gizra/negawatt-server/issues/267/comments","statuses_url":"https://api.github.com/repos/Gizra/negawatt-server/statuses/62cc419ea8750f1aa08a1eb6695467da50ec5ff0","head":{"label":"Gizra:259-1","ref":"259-1","sha":"62cc419ea8750f1aa08a1eb6695467da50ec5ff0","user":{"login":"Gizra","id":2484795,"avatar_url":"https://avatars.githubusercontent.com/u/2484795?v=3","gravatar_id":"","url":"https://api.github.com/users/Gizra","html_url":"https://github.com/Gizra","followers_url":"https://api.github.com/users/Gizra/followers","following_url":"https://api.github.com/users/Gizra/following{/other_user}","gists_url":"https://api.github.com/users/Gizra/gists{/gist_id}","starred_url":"https://api.github.com/users/Gizra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gizra/subscriptions","organizations_url":"https://api.github.com/users/Gizra/orgs","repos_url":"https://api.github.com/users/Gizra/repos","events_url":"https://api.github.com/users/Gizra/events{/privacy}","received_events_url":"https://api.github.com/users/Gizra/received_events","type":"Organization","site_admin":false},"repo":{"id":24016302,"name":"negawatt-server","full_name":"Gizra/negawatt-server","owner":{"login":"Gizra","id":2484795,"avatar_url":"https://avatars.githubusercontent.com/u/2484795?v=3","gravatar_id":"","url":"https://api.github.com/users/Gizra","html_url":"https://github.com/Gizra","followers_url":"https://api.github.com/users/Gizra/followers","following_url":"https://api.github.com/users/Gizra/following{/other_user}","gists_url":"https://api.github.com/users/Gizra/gists{/gist_id}","starred_url":"https://api.github.com/users/Gizra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gizra/subscriptions","organizations_url":"https://api.github.com/users/Gizra/orgs","repos_url":"https://api.github.com/users/Gizra/repos","events_url":"https://api.github.com/users/Gizra/events{/privacy}","received_events_url":"https://api.github.com/users/Gizra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Gizra/negawatt-server","description":"negawatt data server","fork":false,"url":"https://api.github.com/repos/Gizra/negawatt-server","forks_url":"https://api.github.com/repos/Gizra/negawatt-server/forks","keys_url":"https://api.github.com/repos/Gizra/negawatt-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gizra/negawatt-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gizra/negawatt-server/teams","hooks_url":"https://api.github.com/repos/Gizra/negawatt-server/hooks","issue_events_url":"https://api.github.com/repos/Gizra/negawatt-server/issues/events{/number}","events_url":"https://api.github.com/repos/Gizra/negawatt-server/events","assignees_url":"https://api.github.com/repos/Gizra/negawatt-server/assignees{/user}","branches_url":"https://api.github.com/repos/Gizra/negawatt-server/branches{/branch}","tags_url":"https://api.github.com/repos/Gizra/negawatt-server/tags","blobs_url":"https://api.github.com/repos/Gizra/negawatt-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gizra/negawatt-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gizra/negawatt-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gizra/negawatt-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gizra/negawatt-server/statuses/{sha}","languages_url":"https://api.github.com/repos/Gizra/negawatt-server/languages","stargazers_url":"https://api.github.com/repos/Gizra/negawatt-server/stargazers","contributors_url":"https://api.github.com/repos/Gizra/negawatt-server/contributors","subscribers_url":"https://api.github.com/repos/Gizra/negawatt-server/subscribers","subscription_url":"https://api.github.com/repos/Gizra/negawatt-server/subscription","commits_url":"https://api.github.com/repos/Gizra/negawatt-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gizra/negawatt-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gizra/negawatt-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gizra/negawatt-server/issues/comments/{number}","contents_url":"https://api.github.com/repos/Gizra/negawatt-server/contents/{+path}","compare_url":"https://api.github.com/repos/Gizra/negawatt-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gizra/negawatt-server/merges","archive_url":"https://api.github.com/repos/Gizra/negawatt-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gizra/negawatt-server/downloads","issues_url":"https://api.github.com/repos/Gizra/negawatt-server/issues{/number}","pulls_url":"https://api.github.com/repos/Gizra/negawatt-server/pulls{/number}","milestones_url":"https://api.github.com/repos/Gizra/negawatt-server/milestones{/number}","notifications_url":"https://api.github.com/repos/Gizra/negawatt-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gizra/negawatt-server/labels{/name}","releases_url":"https://api.github.com/repos/Gizra/negawatt-server/releases{/id}","created_at":"2014-09-14T07:40:46Z","updated_at":"2015-01-12T07:47:55Z","pushed_at":"2015-01-19T13:12:52Z","git_url":"git://github.com/Gizra/negawatt-server.git","ssh_url":"git@github.com:Gizra/negawatt-server.git","clone_url":"https://github.com/Gizra/negawatt-server.git","svn_url":"https://github.com/Gizra/negawatt-server","homepage":"http://negawatt-dev.gizra.com","size":29339,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":61,"forks":0,"open_issues":61,"watchers":0,"default_branch":"master"}},"base":{"label":"Gizra:master","ref":"master","sha":"f59986b690b35f68d8a6ef540aa0a0a5796f7da8","user":{"login":"Gizra","id":2484795,"avatar_url":"https://avatars.githubusercontent.com/u/2484795?v=3","gravatar_id":"","url":"https://api.github.com/users/Gizra","html_url":"https://github.com/Gizra","followers_url":"https://api.github.com/users/Gizra/followers","following_url":"https://api.github.com/users/Gizra/following{/other_user}","gists_url":"https://api.github.com/users/Gizra/gists{/gist_id}","starred_url":"https://api.github.com/users/Gizra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gizra/subscriptions","organizations_url":"https://api.github.com/users/Gizra/orgs","repos_url":"https://api.github.com/users/Gizra/repos","events_url":"https://api.github.com/users/Gizra/events{/privacy}","received_events_url":"https://api.github.com/users/Gizra/received_events","type":"Organization","site_admin":false},"repo":{"id":24016302,"name":"negawatt-server","full_name":"Gizra/negawatt-server","owner":{"login":"Gizra","id":2484795,"avatar_url":"https://avatars.githubusercontent.com/u/2484795?v=3","gravatar_id":"","url":"https://api.github.com/users/Gizra","html_url":"https://github.com/Gizra","followers_url":"https://api.github.com/users/Gizra/followers","following_url":"https://api.github.com/users/Gizra/following{/other_user}","gists_url":"https://api.github.com/users/Gizra/gists{/gist_id}","starred_url":"https://api.github.com/users/Gizra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gizra/subscriptions","organizations_url":"https://api.github.com/users/Gizra/orgs","repos_url":"https://api.github.com/users/Gizra/repos","events_url":"https://api.github.com/users/Gizra/events{/privacy}","received_events_url":"https://api.github.com/users/Gizra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Gizra/negawatt-server","description":"negawatt data server","fork":false,"url":"https://api.github.com/repos/Gizra/negawatt-server","forks_url":"https://api.github.com/repos/Gizra/negawatt-server/forks","keys_url":"https://api.github.com/repos/Gizra/negawatt-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gizra/negawatt-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gizra/negawatt-server/teams","hooks_url":"https://api.github.com/repos/Gizra/negawatt-server/hooks","issue_events_url":"https://api.github.com/repos/Gizra/negawatt-server/issues/events{/number}","events_url":"https://api.github.com/repos/Gizra/negawatt-server/events","assignees_url":"https://api.github.com/repos/Gizra/negawatt-server/assignees{/user}","branches_url":"https://api.github.com/repos/Gizra/negawatt-server/branches{/branch}","tags_url":"https://api.github.com/repos/Gizra/negawatt-server/tags","blobs_url":"https://api.github.com/repos/Gizra/negawatt-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gizra/negawatt-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gizra/negawatt-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gizra/negawatt-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gizra/negawatt-server/statuses/{sha}","languages_url":"https://api.github.com/repos/Gizra/negawatt-server/languages","stargazers_url":"https://api.github.com/repos/Gizra/negawatt-server/stargazers","contributors_url":"https://api.github.com/repos/Gizra/negawatt-server/contributors","subscribers_url":"https://api.github.com/repos/Gizra/negawatt-server/subscribers","subscription_url":"https://api.github.com/repos/Gizra/negawatt-server/subscription","commits_url":"https://api.github.com/repos/Gizra/negawatt-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gizra/negawatt-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gizra/negawatt-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gizra/negawatt-server/issues/comments/{number}","contents_url":"https://api.github.com/repos/Gizra/negawatt-server/contents/{+path}","compare_url":"https://api.github.com/repos/Gizra/negawatt-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gizra/negawatt-server/merges","archive_url":"https://api.github.com/repos/Gizra/negawatt-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gizra/negawatt-server/downloads","issues_url":"https://api.github.com/repos/Gizra/negawatt-server/issues{/number}","pulls_url":"https://api.github.com/repos/Gizra/negawatt-server/pulls{/number}","milestones_url":"https://api.github.com/repos/Gizra/negawatt-server/milestones{/number}","notifications_url":"https://api.github.com/repos/Gizra/negawatt-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gizra/negawatt-server/labels{/name}","releases_url":"https://api.github.com/repos/Gizra/negawatt-server/releases{/id}","created_at":"2014-09-14T07:40:46Z","updated_at":"2015-01-12T07:47:55Z","pushed_at":"2015-01-19T13:12:52Z","git_url":"git://github.com/Gizra/negawatt-server.git","ssh_url":"git@github.com:Gizra/negawatt-server.git","clone_url":"https://github.com/Gizra/negawatt-server.git","svn_url":"https://github.com/Gizra/negawatt-server","homepage":"http://negawatt-dev.gizra.com","size":29339,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":61,"forks":0,"open_issues":61,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Gizra/negawatt-server/pulls/267"},"html":{"href":"https://github.com/Gizra/negawatt-server/pull/267"},"issue":{"href":"https://api.github.com/repos/Gizra/negawatt-server/issues/267"},"comments":{"href":"https://api.github.com/repos/Gizra/negawatt-server/issues/267/comments"},"review_comments":{"href":"https://api.github.com/repos/Gizra/negawatt-server/pulls/267/comments"},"review_comment":{"href":"https://api.github.com/repos/Gizra/negawatt-server/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Gizra/negawatt-server/pulls/267/commits"},"statuses":{"href":"https://api.github.com/repos/Gizra/negawatt-server/statuses/62cc419ea8750f1aa08a1eb6695467da50ec5ff0"}}}}