{"action":"created","comment":{"url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/comments/76004743","id":76004743,"diff_hunk":"@@ -115,4 +115,15 @@ public Person updatePerson(Person person) {\n         personDao.update(person);\n         return person;\n     }\n+\n+    @PUT\n+    @Path(\"/{id}/switchAccountStatus\")\n+    @UnitOfWork\n+    public Response switchAccountStatus(@PathParam(\"id\") Long id) {\n+\n+        Person person = personDao.getById(id);\n+        person.setActive(!person.getActive());","path":"src/main/java/resources/PersonResource.java","position":11,"original_position":11,"commit_id":"fe98c35b5d7a80f54037915fa864bdee79aaf50d","original_commit_id":"fe98c35b5d7a80f54037915fa864bdee79aaf50d","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":"What if the person is not found?","created_at":"2016-08-24T07:10:34Z","updated_at":"2016-08-24T07:10:34Z","html_url":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/121#discussion_r76004743","pull_request_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/comments/76004743"},"html":{"href":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/121#discussion_r76004743"},"pull_request":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/121","id":82358035,"html_url":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/121","diff_url":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/121.diff","patch_url":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/121.patch","issue_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues/121","number":121,"state":"open","locked":false,"title":"Us 52 login functionality","user":{"login":"kwidzinskidawid","id":14997983,"avatar_url":"https://avatars.githubusercontent.com/u/14997983?v=3","gravatar_id":"","url":"https://api.github.com/users/kwidzinskidawid","html_url":"https://github.com/kwidzinskidawid","followers_url":"https://api.github.com/users/kwidzinskidawid/followers","following_url":"https://api.github.com/users/kwidzinskidawid/following{/other_user}","gists_url":"https://api.github.com/users/kwidzinskidawid/gists{/gist_id}","starred_url":"https://api.github.com/users/kwidzinskidawid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwidzinskidawid/subscriptions","organizations_url":"https://api.github.com/users/kwidzinskidawid/orgs","repos_url":"https://api.github.com/users/kwidzinskidawid/repos","events_url":"https://api.github.com/users/kwidzinskidawid/events{/privacy}","received_events_url":"https://api.github.com/users/kwidzinskidawid/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-23T12:48:22Z","updated_at":"2016-08-24T07:10:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"103058d307cc1459b6a21e309be9e98f8e0e052f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/121/commits","review_comments_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/121/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/121/comments","statuses_url":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/statuses/fe98c35b5d7a80f54037915fa864bdee79aaf50d","head":{"label":"wojciechh-kainos:US-52_login_functionality","ref":"US-52_login_functionality","sha":"fe98c35b5d7a80f54037915fa864bdee79aaf50d","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-24T07:09:20Z","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":3659,"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":12,"forks":0,"open_issues":12,"watchers":1,"default_branch":"master"}},"base":{"label":"wojciechh-kainos:master","ref":"master","sha":"55fb1d44f950bff06acb33fe5eab101981c3ff67","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-24T07:09:20Z","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":3659,"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":12,"forks":0,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/121"},"html":{"href":"https://github.com/wojciechh-kainos/tdp-recruitment/pull/121"},"issue":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues/121"},"comments":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/pulls/121/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/121/commits"},"statuses":{"href":"https://api.github.com/repos/wojciechh-kainos/tdp-recruitment/statuses/fe98c35b5d7a80f54037915fa864bdee79aaf50d"}}}}
{"actor":{"display_login":"rlewan"}}