{"action":"created","comment":{"url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/comments/75830085","id":75830085,"diff_hunk":"@@ -0,0 +1,22 @@\n+define(['angular', 'application/recruiter/tdprRecruiterModule'\n+    , 'application/recruiter/services/tdprPersonsService'], function (angular, tdprRecruiterModule) {\n+    tdprRecruiterModule.controller(\"tdprManageUsersController\", function ($scope, tdprPersonsService, $state, Notification) {\n+\n+        tdprPersonsService.fetchPersons().then( function (response) {\n+            $scope.persons = response.data;\n+        }, function () {\n+            Notification.error({message: \"Something went wrong with getting users\" , delay: 3500});\n+        });\n+\n+        $scope.managePerson = function( person ){\n+            person.active = !person.active;\n+            tdprPersonsService.managePerson(person).then( function () {\n+                if(!person.active) Notification.success({message: person.firstName + \" \" + person.lastName  + \" has been disabled.\" , delay: 3500});","path":"src/main/resources/assets/js/application/recruiter/controllers/tdprManageUsersController.js","position":14,"original_position":14,"commit_id":"a0fb9ddaee2f6251786db222c3b3b82a22f9b29a","original_commit_id":"a0fb9ddaee2f6251786db222c3b3b82a22f9b29a","user":{"login":"rlewan","id":1095386,"avatar_url":"https://avatars.githubusercontent.com/u/1095386?v=3","gravatar_id":"","url":"https://api.github.com/users/rlewan","html_url":"https://github.com/rlewan","followers_url":"https://api.github.com/users/rlewan/followers","following_url":"https://api.github.com/users/rlewan/following{/other_user}","gists_url":"https://api.github.com/users/rlewan/gists{/gist_id}","starred_url":"https://api.github.com/users/rlewan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlewan/subscriptions","organizations_url":"https://api.github.com/users/rlewan/orgs","repos_url":"https://api.github.com/users/rlewan/repos","events_url":"https://api.github.com/users/rlewan/events{/privacy}","received_events_url":"https://api.github.com/users/rlewan/received_events","type":"User","site_admin":false},"body":"Please use `{ }` blocks in if statements for readability.","created_at":"2016-08-23T09:25:22Z","updated_at":"2016-08-23T09:25:22Z","html_url":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/112#discussion_r75830085","pull_request_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/comments/75830085"},"html":{"href":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/112#discussion_r75830085"},"pull_request":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/112","id":82197000,"html_url":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/112","diff_url":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/112.diff","patch_url":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/112.patch","issue_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues/112","number":112,"state":"open","locked":false,"title":"Us 41 remove or disable user","user":{"login":"r-kruk-kainos","id":20284152,"avatar_url":"https://avatars.githubusercontent.com/u/20284152?v=3","gravatar_id":"","url":"https://api.github.com/users/r-kruk-kainos","html_url":"https://github.com/r-kruk-kainos","followers_url":"https://api.github.com/users/r-kruk-kainos/followers","following_url":"https://api.github.com/users/r-kruk-kainos/following{/other_user}","gists_url":"https://api.github.com/users/r-kruk-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/r-kruk-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-kruk-kainos/subscriptions","organizations_url":"https://api.github.com/users/r-kruk-kainos/orgs","repos_url":"https://api.github.com/users/r-kruk-kainos/repos","events_url":"https://api.github.com/users/r-kruk-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/r-kruk-kainos/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-22T14:05:57Z","updated_at":"2016-08-23T09:25:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1b7401a53e096747041752b625f48d49284d139","assignee":{"login":"rlewan","id":1095386,"avatar_url":"https://avatars.githubusercontent.com/u/1095386?v=3","gravatar_id":"","url":"https://api.github.com/users/rlewan","html_url":"https://github.com/rlewan","followers_url":"https://api.github.com/users/rlewan/followers","following_url":"https://api.github.com/users/rlewan/following{/other_user}","gists_url":"https://api.github.com/users/rlewan/gists{/gist_id}","starred_url":"https://api.github.com/users/rlewan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlewan/subscriptions","organizations_url":"https://api.github.com/users/rlewan/orgs","repos_url":"https://api.github.com/users/rlewan/repos","events_url":"https://api.github.com/users/rlewan/events{/privacy}","received_events_url":"https://api.github.com/users/rlewan/received_events","type":"User","site_admin":false},"assignees":[{"login":"rlewan","id":1095386,"avatar_url":"https://avatars.githubusercontent.com/u/1095386?v=3","gravatar_id":"","url":"https://api.github.com/users/rlewan","html_url":"https://github.com/rlewan","followers_url":"https://api.github.com/users/rlewan/followers","following_url":"https://api.github.com/users/rlewan/following{/other_user}","gists_url":"https://api.github.com/users/rlewan/gists{/gist_id}","starred_url":"https://api.github.com/users/rlewan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlewan/subscriptions","organizations_url":"https://api.github.com/users/rlewan/orgs","repos_url":"https://api.github.com/users/rlewan/repos","events_url":"https://api.github.com/users/rlewan/events{/privacy}","received_events_url":"https://api.github.com/users/rlewan/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/112/commits","review_comments_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/112/comments","review_comment_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues/112/comments","statuses_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/statuses/a0fb9ddaee2f6251786db222c3b3b82a22f9b29a","head":{"label":"wojciechh-kainos:US-41_Remove_or_disable_user","ref":"US-41_Remove_or_disable_user","sha":"a0fb9ddaee2f6251786db222c3b3b82a22f9b29a","user":{"login":"wojciechh-kainos","id":20163492,"avatar_url":"https://avatars.githubusercontent.com/u/20163492?v=3","gravatar_id":"","url":"https://api.github.com/users/wojciechh-kainos","html_url":"https://github.com/wojciechh-kainos","followers_url":"https://api.github.com/users/wojciechh-kainos/followers","following_url":"https://api.github.com/users/wojciechh-kainos/following{/other_user}","gists_url":"https://api.github.com/users/wojciechh-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/wojciechh-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojciechh-kainos/subscriptions","organizations_url":"https://api.github.com/users/wojciechh-kainos/orgs","repos_url":"https://api.github.com/users/wojciechh-kainos/repos","events_url":"https://api.github.com/users/wojciechh-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/wojciechh-kainos/received_events","type":"User","site_admin":false},"repo":{"id":64290432,"name":"tdp-recruitment","full_name":"wojciechh-kainos/tdp-recruitment","owner":{"login":"wojciechh-kainos","id":20163492,"avatar_url":"https://avatars.githubusercontent.com/u/20163492?v=3","gravatar_id":"","url":"https://api.github.com/users/wojciechh-kainos","html_url":"https://github.com/wojciechh-kainos","followers_url":"https://api.github.com/users/wojciechh-kainos/followers","following_url":"https://api.github.com/users/wojciechh-kainos/following{/other_user}","gists_url":"https://api.github.com/users/wojciechh-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/wojciechh-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojciechh-kainos/subscriptions","organizations_url":"https://api.github.com/users/wojciechh-kainos/orgs","repos_url":"https://api.github.com/users/wojciechh-kainos/repos","events_url":"https://api.github.com/users/wojciechh-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/wojciechh-kainos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wojciechh-kainos/tdp-recruitment","description":null,"fork":false,"url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment","forks_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/forks","keys_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/teams","hooks_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/hooks","issue_events_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues/events{/number}","events_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/events","assignees_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/assignees{/user}","branches_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/branches{/branch}","tags_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/tags","blobs_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/git/refs{/sha}","trees_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/statuses/{sha}","languages_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/languages","stargazers_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/stargazers","contributors_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/contributors","subscribers_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/subscribers","subscription_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/subscription","commits_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/commits{/sha}","git_commits_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/git/commits{/sha}","comments_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/comments{/number}","issue_comment_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues/comments{/number}","contents_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/contents/{+path}","compare_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/merges","archive_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/downloads","issues_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues{/number}","pulls_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls{/number}","milestones_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/milestones{/number}","notifications_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/labels{/name}","releases_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/releases{/id}","deployments_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/deployments","created_at":"2016-07-27T08:19:21Z","updated_at":"2016-08-17T08:48:30Z","pushed_at":"2016-08-23T09:25:00Z","git_url":"git://github.com/wojciechh-kainos/tdp-recruitment.git","ssh_url":"git@github.com:wojciechh-kainos/tdp-recruitment.git","clone_url":"https://github.com/wojciechh-kainos/tdp-recruitment.git","svn_url":"https://github.com/wojciechh-kainos/tdp-recruitment","homepage":null,"size":3460,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":1,"default_branch":"master"}},"base":{"label":"wojciechh-kainos:master","ref":"master","sha":"bb392975309083f35bcf103971ea74237ddc831e","user":{"login":"wojciechh-kainos","id":20163492,"avatar_url":"https://avatars.githubusercontent.com/u/20163492?v=3","gravatar_id":"","url":"https://api.github.com/users/wojciechh-kainos","html_url":"https://github.com/wojciechh-kainos","followers_url":"https://api.github.com/users/wojciechh-kainos/followers","following_url":"https://api.github.com/users/wojciechh-kainos/following{/other_user}","gists_url":"https://api.github.com/users/wojciechh-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/wojciechh-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojciechh-kainos/subscriptions","organizations_url":"https://api.github.com/users/wojciechh-kainos/orgs","repos_url":"https://api.github.com/users/wojciechh-kainos/repos","events_url":"https://api.github.com/users/wojciechh-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/wojciechh-kainos/received_events","type":"User","site_admin":false},"repo":{"id":64290432,"name":"tdp-recruitment","full_name":"wojciechh-kainos/tdp-recruitment","owner":{"login":"wojciechh-kainos","id":20163492,"avatar_url":"https://avatars.githubusercontent.com/u/20163492?v=3","gravatar_id":"","url":"https://api.github.com/users/wojciechh-kainos","html_url":"https://github.com/wojciechh-kainos","followers_url":"https://api.github.com/users/wojciechh-kainos/followers","following_url":"https://api.github.com/users/wojciechh-kainos/following{/other_user}","gists_url":"https://api.github.com/users/wojciechh-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/wojciechh-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojciechh-kainos/subscriptions","organizations_url":"https://api.github.com/users/wojciechh-kainos/orgs","repos_url":"https://api.github.com/users/wojciechh-kainos/repos","events_url":"https://api.github.com/users/wojciechh-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/wojciechh-kainos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wojciechh-kainos/tdp-recruitment","description":null,"fork":false,"url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment","forks_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/forks","keys_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/teams","hooks_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/hooks","issue_events_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues/events{/number}","events_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/events","assignees_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/assignees{/user}","branches_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/branches{/branch}","tags_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/tags","blobs_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/git/refs{/sha}","trees_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/statuses/{sha}","languages_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/languages","stargazers_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/stargazers","contributors_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/contributors","subscribers_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/subscribers","subscription_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/subscription","commits_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/commits{/sha}","git_commits_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/git/commits{/sha}","comments_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/comments{/number}","issue_comment_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues/comments{/number}","contents_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/contents/{+path}","compare_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/merges","archive_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/downloads","issues_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues{/number}","pulls_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls{/number}","milestones_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/milestones{/number}","notifications_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/labels{/name}","releases_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/releases{/id}","deployments_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/deployments","created_at":"2016-07-27T08:19:21Z","updated_at":"2016-08-17T08:48:30Z","pushed_at":"2016-08-23T09:25:00Z","git_url":"git://github.com/wojciechh-kainos/tdp-recruitment.git","ssh_url":"git@github.com:wojciechh-kainos/tdp-recruitment.git","clone_url":"https://github.com/wojciechh-kainos/tdp-recruitment.git","svn_url":"https://github.com/wojciechh-kainos/tdp-recruitment","homepage":null,"size":3460,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/112"},"html":{"href":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/112"},"issue":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues/112"},"comments":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/statuses/a0fb9ddaee2f6251786db222c3b3b82a22f9b29a"}}}}
{"actor":{"display_login":"rlewan"}}