{"action":"created","comment":{"url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/comments/69738203","id":69738203,"diff_hunk":"@@ -1,53 +1,52 @@\n angular.module('starter')\n \n     // Controls the Negative Factors page\n-    .controller('NegativeCtrl', function($scope,localStorageService, $ionicModal, $timeout, measurementService, \n-                                         $ionicLoading, $ionicPopup, $state, correlationService, $rootScope,\n-                                         utilsService, authService) {\n+    .controller('NegativeCtrl', function($scope, $ionicModal, $timeout, measurementService,\n+                                         $ionicLoading, $state, $ionicPopup, correlationService, $rootScope,\n+                                         localStorageService, utilsService, authService) {\n \n         $scope.loading = true;\n-        /*// redirect if not logged in\n+\n         if(!$rootScope.user){\n-            $state.go(config.appSettings.welcomeState);\n+            console.debug(\"negativeCtrl: not logged in, going to default state\");\n+            $state.go(config.appSettings.defaultState);\n             // app wide signal to sibling controllers that the state has changed\n             $rootScope.$broadcast('transition');\n-        }*/\n+        }\n         \n-        localStorageService.getItem('notShowConfirmationNegative',function(notShowConfirmationNegative){\n-            $scope.notShowConfirmationNegative = notShowConfirmationNegative ? JSON.parse(notShowConfirmationNegative) : false;\n+        localStorageService.getItem('notShowConfirmationNegative',function(notShowConfirmation){","path":"www/js/controllers/negativeCtrl.js","position":25,"original_position":25,"commit_id":"03e36accd4ea22b1700551e189d77930aa8b690c","original_commit_id":"03e36accd4ea22b1700551e189d77930aa8b690c","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Strings must use doublequote. (quotes)](https://www.codacy.com/app/m_2/QuantiModo-Ionic-Template-App/file/2922948389/issues/source?bid=3248947&fileBranchId=3408773#l17)","created_at":"2016-07-06T14:15:48Z","updated_at":"2016-07-06T14:15:48Z","html_url":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App/pull/261#discussion_r69738203","pull_request_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/261","_links":{"self":{"href":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/comments/69738203"},"html":{"href":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App/pull/261#discussion_r69738203"},"pull_request":{"href":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/261"}}},"pull_request":{"url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/261","id":76348144,"html_url":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App/pull/261","diff_url":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App/pull/261.diff","patch_url":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App/pull/261.patch","issue_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/issues/261","number":261,"state":"open","locked":false,"title":"Feature/positive negative ctrl","user":{"login":"mikepsinn","id":2808553,"avatar_url":"https://avatars.githubusercontent.com/u/2808553?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepsinn","html_url":"https://github.com/mikepsinn","followers_url":"https://api.github.com/users/mikepsinn/followers","following_url":"https://api.github.com/users/mikepsinn/following{/other_user}","gists_url":"https://api.github.com/users/mikepsinn/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepsinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepsinn/subscriptions","organizations_url":"https://api.github.com/users/mikepsinn/orgs","repos_url":"https://api.github.com/users/mikepsinn/repos","events_url":"https://api.github.com/users/mikepsinn/events{/privacy}","received_events_url":"https://api.github.com/users/mikepsinn/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-05T21:43:17Z","updated_at":"2016-07-06T14:15:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bba705be63b397a4bc4301780036068d35fb6cc9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/261/commits","review_comments_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/261/comments","review_comment_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/issues/261/comments","statuses_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/statuses/03e36accd4ea22b1700551e189d77930aa8b690c","head":{"label":"Abolitionist-Project:feature/positive-negative-ctrl","ref":"feature/positive-negative-ctrl","sha":"03e36accd4ea22b1700551e189d77930aa8b690c","user":{"login":"Abolitionist-Project","id":5904153,"avatar_url":"https://avatars.githubusercontent.com/u/5904153?v=3","gravatar_id":"","url":"https://api.github.com/users/Abolitionist-Project","html_url":"https://github.com/Abolitionist-Project","followers_url":"https://api.github.com/users/Abolitionist-Project/followers","following_url":"https://api.github.com/users/Abolitionist-Project/following{/other_user}","gists_url":"https://api.github.com/users/Abolitionist-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/Abolitionist-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abolitionist-Project/subscriptions","organizations_url":"https://api.github.com/users/Abolitionist-Project/orgs","repos_url":"https://api.github.com/users/Abolitionist-Project/repos","events_url":"https://api.github.com/users/Abolitionist-Project/events{/privacy}","received_events_url":"https://api.github.com/users/Abolitionist-Project/received_events","type":"Organization","site_admin":false},"repo":{"id":41497171,"name":"QuantiModo-Ionic-Template-App","full_name":"Abolitionist-Project/QuantiModo-Ionic-Template-App","owner":{"login":"Abolitionist-Project","id":5904153,"avatar_url":"https://avatars.githubusercontent.com/u/5904153?v=3","gravatar_id":"","url":"https://api.github.com/users/Abolitionist-Project","html_url":"https://github.com/Abolitionist-Project","followers_url":"https://api.github.com/users/Abolitionist-Project/followers","following_url":"https://api.github.com/users/Abolitionist-Project/following{/other_user}","gists_url":"https://api.github.com/users/Abolitionist-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/Abolitionist-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abolitionist-Project/subscriptions","organizations_url":"https://api.github.com/users/Abolitionist-Project/orgs","repos_url":"https://api.github.com/users/Abolitionist-Project/repos","events_url":"https://api.github.com/users/Abolitionist-Project/events{/privacy}","received_events_url":"https://api.github.com/users/Abolitionist-Project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App","description":"A generic app that can be easily configured to help the user track and optimize any given outcome variable.","fork":false,"url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App","forks_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/forks","keys_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/teams","hooks_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/hooks","issue_events_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/issues/events{/number}","events_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/events","assignees_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/assignees{/user}","branches_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/branches{/branch}","tags_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/tags","blobs_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/statuses/{sha}","languages_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/languages","stargazers_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/stargazers","contributors_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/contributors","subscribers_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/subscribers","subscription_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/subscription","commits_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/contents/{+path}","compare_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/merges","archive_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/downloads","issues_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/issues{/number}","pulls_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls{/number}","milestones_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/milestones{/number}","notifications_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/labels{/name}","releases_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/releases{/id}","deployments_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/deployments","created_at":"2015-08-27T16:07:22Z","updated_at":"2016-05-12T14:04:42Z","pushed_at":"2016-07-06T14:11:03Z","git_url":"git://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App.git","ssh_url":"git@github.com:Abolitionist-Project/QuantiModo-Ionic-Template-App.git","clone_url":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App.git","svn_url":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App","homepage":"https://quantimo.do","size":85836,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"develop"}},"base":{"label":"Abolitionist-Project:develop","ref":"develop","sha":"85d88d86722ee3f1fb7e41f1a42a3b172ceb1675","user":{"login":"Abolitionist-Project","id":5904153,"avatar_url":"https://avatars.githubusercontent.com/u/5904153?v=3","gravatar_id":"","url":"https://api.github.com/users/Abolitionist-Project","html_url":"https://github.com/Abolitionist-Project","followers_url":"https://api.github.com/users/Abolitionist-Project/followers","following_url":"https://api.github.com/users/Abolitionist-Project/following{/other_user}","gists_url":"https://api.github.com/users/Abolitionist-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/Abolitionist-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abolitionist-Project/subscriptions","organizations_url":"https://api.github.com/users/Abolitionist-Project/orgs","repos_url":"https://api.github.com/users/Abolitionist-Project/repos","events_url":"https://api.github.com/users/Abolitionist-Project/events{/privacy}","received_events_url":"https://api.github.com/users/Abolitionist-Project/received_events","type":"Organization","site_admin":false},"repo":{"id":41497171,"name":"QuantiModo-Ionic-Template-App","full_name":"Abolitionist-Project/QuantiModo-Ionic-Template-App","owner":{"login":"Abolitionist-Project","id":5904153,"avatar_url":"https://avatars.githubusercontent.com/u/5904153?v=3","gravatar_id":"","url":"https://api.github.com/users/Abolitionist-Project","html_url":"https://github.com/Abolitionist-Project","followers_url":"https://api.github.com/users/Abolitionist-Project/followers","following_url":"https://api.github.com/users/Abolitionist-Project/following{/other_user}","gists_url":"https://api.github.com/users/Abolitionist-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/Abolitionist-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abolitionist-Project/subscriptions","organizations_url":"https://api.github.com/users/Abolitionist-Project/orgs","repos_url":"https://api.github.com/users/Abolitionist-Project/repos","events_url":"https://api.github.com/users/Abolitionist-Project/events{/privacy}","received_events_url":"https://api.github.com/users/Abolitionist-Project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App","description":"A generic app that can be easily configured to help the user track and optimize any given outcome variable.","fork":false,"url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App","forks_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/forks","keys_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/teams","hooks_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/hooks","issue_events_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/issues/events{/number}","events_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/events","assignees_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/assignees{/user}","branches_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/branches{/branch}","tags_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/tags","blobs_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/git/refs{/sha}","trees_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/statuses/{sha}","languages_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/languages","stargazers_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/stargazers","contributors_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/contributors","subscribers_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/subscribers","subscription_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/subscription","commits_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/commits{/sha}","git_commits_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/git/commits{/sha}","comments_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/comments{/number}","issue_comment_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/issues/comments{/number}","contents_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/contents/{+path}","compare_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/merges","archive_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/downloads","issues_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/issues{/number}","pulls_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls{/number}","milestones_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/milestones{/number}","notifications_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/labels{/name}","releases_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/releases{/id}","deployments_url":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/deployments","created_at":"2015-08-27T16:07:22Z","updated_at":"2016-05-12T14:04:42Z","pushed_at":"2016-07-06T14:11:03Z","git_url":"git://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App.git","ssh_url":"git@github.com:Abolitionist-Project/QuantiModo-Ionic-Template-App.git","clone_url":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App.git","svn_url":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App","homepage":"https://quantimo.do","size":85836,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/261"},"html":{"href":"https://github.com/Abolitionist-Project/QuantiModo-Ionic-Template-App/pull/261"},"issue":{"href":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/issues/261"},"comments":{"href":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/issues/261/comments"},"review_comments":{"href":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/261/comments"},"review_comment":{"href":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/pulls/261/commits"},"statuses":{"href":"https://api.github.com/repos/Abolitionist-Project/QuantiModo-Ionic-Template-App/statuses/03e36accd4ea22b1700551e189d77930aa8b690c"}}}}
{"actor":{"display_login":"codacy-bot"}}