{"action":"opened","number":129,"pull_request":{"url":"https://api.github.com/repos/redhatcz/Thesis-management-system/pulls/129","id":83437381,"html_url":"https://github.com/redhatcz/Thesis-management-system/pull/129","diff_url":"https://github.com/redhatcz/Thesis-management-system/pull/129.diff","patch_url":"https://github.com/redhatcz/Thesis-management-system/pull/129.patch","issue_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/issues/129","number":129,"state":"open","locked":false,"title":"#105 - Added checkbox to registration form for University Supervisor","user":{"login":"TheSprtCz","id":5594403,"avatar_url":"https://avatars.githubusercontent.com/u/5594403?v=3","gravatar_id":"","url":"https://api.github.com/users/TheSprtCz","html_url":"https://github.com/TheSprtCz","followers_url":"https://api.github.com/users/TheSprtCz/followers","following_url":"https://api.github.com/users/TheSprtCz/following{/other_user}","gists_url":"https://api.github.com/users/TheSprtCz/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSprtCz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSprtCz/subscriptions","organizations_url":"https://api.github.com/users/TheSprtCz/orgs","repos_url":"https://api.github.com/users/TheSprtCz/repos","events_url":"https://api.github.com/users/TheSprtCz/events{/privacy}","received_events_url":"https://api.github.com/users/TheSprtCz/received_events","type":"User","site_admin":false},"body":"# Overview\r\n* new Domain class RoleRequest.\r\n  * RoleRequest is created when registrating, but is enabled after confirming account.\r\n* Added new notifications when creating, approving or declining RoleRequest.\r\n* RoleRequests can be found under Members tab.\r\n  * Members tab now has 2 tabs inside, Members and RoleRequests.\r\n  * Only Admin can approve, decline RoleRequest.\r\n* Added Secured annotation to list() method in UserController, since only Admin can access it.\r\n\r\n# New Files\r\n**RoleRequestController.groovy**\r\n  * New Controller for handling RoleRequests.\r\n  * **list()** method is compatible with #126, meaning they have type specified in method instead of form.\r\n  * Only Applicant and Admin can view RoleRequest, while approve/disapprove/list can be done only by Admin.\r\n    * Currently no way for Applicant to view his RoleRequest, expect for direct link, because I couldn't think of good way to incorporate it into User profile.\r\n\r\n**RoleRequest.groovy**\r\n  * New Domain class, used for permission requests.\r\n\r\n**RoleRequestListenerService.groovy**\r\n * 3 new Listeners for creation/approval/disapproval of RoleRequest.\r\n\r\n**RoleRequestEvent.groovy**\r\n * Event for transferring parameters to RoleRequest events.\r\n\r\n**layouts/_listLayout.gsp**\r\n * Layout for Members and RoleRequests based on tabs in User profile.\r\n\r\n**roleRequest/list.gsp**\r\n * List of RoleRequests with Filter sidebar.\r\n\r\n**roleRequest/show.gsp**\r\n * Information about specific RoleRequest.\r\n\r\n# Updated files\r\n\r\n**BootStrap.groovy**\r\n  * Added 2 RoleRequests to dev environment.\r\n\r\n**UserController.groovy**\r\n  * Only Admin can now list the Users.\r\n\r\n**RegistrationController.groovy**\r\n  * Updated **register()** method to create disabled RoleRequest after saving user.\r\n  * **complete()** method now shows additional text if user asked for University supervisor permissions.\r\n\r\n**UserListenerService.groovy**\r\n * UserConfirmed listener now enables both RoleRequest and User and fires RoleRequestCreated event.\r\n * TimedOut listener now removes both RoleRequest and User.\r\n\r\n**layouts/_navigation.gsp**\r\n * Members tab is now highlighted even when operating in RoleRequestController.\r\n\r\n**registration/_form.gsp**\r\n * Added 'I Am Supervisor' checkbox.\r\n\r\n**user/list.gsp**\r\n * Updated to fit listLayout.","created_at":"2016-08-31T11:49:02Z","updated_at":"2016-08-31T11:49:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/pulls/129/commits","review_comments_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/pulls/129/comments","review_comment_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/issues/129/comments","statuses_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/statuses/ea1e7cccbd14d4f581b486a260e2e1a59eea574d","head":{"label":"TheSprtCz:#105","ref":"#105","sha":"ea1e7cccbd14d4f581b486a260e2e1a59eea574d","user":{"login":"TheSprtCz","id":5594403,"avatar_url":"https://avatars.githubusercontent.com/u/5594403?v=3","gravatar_id":"","url":"https://api.github.com/users/TheSprtCz","html_url":"https://github.com/TheSprtCz","followers_url":"https://api.github.com/users/TheSprtCz/followers","following_url":"https://api.github.com/users/TheSprtCz/following{/other_user}","gists_url":"https://api.github.com/users/TheSprtCz/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSprtCz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSprtCz/subscriptions","organizations_url":"https://api.github.com/users/TheSprtCz/orgs","repos_url":"https://api.github.com/users/TheSprtCz/repos","events_url":"https://api.github.com/users/TheSprtCz/events{/privacy}","received_events_url":"https://api.github.com/users/TheSprtCz/received_events","type":"User","site_admin":false},"repo":{"id":63327574,"name":"Thesis-management-system","full_name":"TheSprtCz/Thesis-management-system","owner":{"login":"TheSprtCz","id":5594403,"avatar_url":"https://avatars.githubusercontent.com/u/5594403?v=3","gravatar_id":"","url":"https://api.github.com/users/TheSprtCz","html_url":"https://github.com/TheSprtCz","followers_url":"https://api.github.com/users/TheSprtCz/followers","following_url":"https://api.github.com/users/TheSprtCz/following{/other_user}","gists_url":"https://api.github.com/users/TheSprtCz/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSprtCz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSprtCz/subscriptions","organizations_url":"https://api.github.com/users/TheSprtCz/orgs","repos_url":"https://api.github.com/users/TheSprtCz/repos","events_url":"https://api.github.com/users/TheSprtCz/events{/privacy}","received_events_url":"https://api.github.com/users/TheSprtCz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheSprtCz/Thesis-management-system","description":null,"fork":true,"url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system","forks_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/forks","keys_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/teams","hooks_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/hooks","issue_events_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/issues/events{/number}","events_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/events","assignees_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/assignees{/user}","branches_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/branches{/branch}","tags_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/tags","blobs_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/statuses/{sha}","languages_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/languages","stargazers_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/stargazers","contributors_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/contributors","subscribers_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/subscribers","subscription_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/subscription","commits_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/contents/{+path}","compare_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/merges","archive_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/downloads","issues_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/issues{/number}","pulls_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/pulls{/number}","milestones_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/milestones{/number}","notifications_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/labels{/name}","releases_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/releases{/id}","deployments_url":"https://api.github.com/repos/TheSprtCz/Thesis-management-system/deployments","created_at":"2016-07-14T10:35:47Z","updated_at":"2016-07-14T10:35:48Z","pushed_at":"2016-08-31T11:47:52Z","git_url":"git://github.com/TheSprtCz/Thesis-management-system.git","ssh_url":"git@github.com:TheSprtCz/Thesis-management-system.git","clone_url":"https://github.com/TheSprtCz/Thesis-management-system.git","svn_url":"https://github.com/TheSprtCz/Thesis-management-system","homepage":"https://diplomky.redhat.com","size":3281,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"redhatcz:master","ref":"master","sha":"210a9e454af73fc535b76b130fa6165c62caa79d","user":{"login":"redhatcz","id":13575501,"avatar_url":"https://avatars.githubusercontent.com/u/13575501?v=3","gravatar_id":"","url":"https://api.github.com/users/redhatcz","html_url":"https://github.com/redhatcz","followers_url":"https://api.github.com/users/redhatcz/followers","following_url":"https://api.github.com/users/redhatcz/following{/other_user}","gists_url":"https://api.github.com/users/redhatcz/gists{/gist_id}","starred_url":"https://api.github.com/users/redhatcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhatcz/subscriptions","organizations_url":"https://api.github.com/users/redhatcz/orgs","repos_url":"https://api.github.com/users/redhatcz/repos","events_url":"https://api.github.com/users/redhatcz/events{/privacy}","received_events_url":"https://api.github.com/users/redhatcz/received_events","type":"Organization","site_admin":false},"repo":{"id":6081397,"name":"Thesis-management-system","full_name":"redhatcz/Thesis-management-system","owner":{"login":"redhatcz","id":13575501,"avatar_url":"https://avatars.githubusercontent.com/u/13575501?v=3","gravatar_id":"","url":"https://api.github.com/users/redhatcz","html_url":"https://github.com/redhatcz","followers_url":"https://api.github.com/users/redhatcz/followers","following_url":"https://api.github.com/users/redhatcz/following{/other_user}","gists_url":"https://api.github.com/users/redhatcz/gists{/gist_id}","starred_url":"https://api.github.com/users/redhatcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhatcz/subscriptions","organizations_url":"https://api.github.com/users/redhatcz/orgs","repos_url":"https://api.github.com/users/redhatcz/repos","events_url":"https://api.github.com/users/redhatcz/events{/privacy}","received_events_url":"https://api.github.com/users/redhatcz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redhatcz/Thesis-management-system","description":"","fork":false,"url":"https://api.github.com/repos/redhatcz/Thesis-management-system","forks_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/forks","keys_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/teams","hooks_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/hooks","issue_events_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/issues/events{/number}","events_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/events","assignees_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/assignees{/user}","branches_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/branches{/branch}","tags_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/tags","blobs_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/statuses/{sha}","languages_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/languages","stargazers_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/stargazers","contributors_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/contributors","subscribers_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/subscribers","subscription_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/subscription","commits_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/contents/{+path}","compare_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/merges","archive_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/downloads","issues_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/issues{/number}","pulls_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/pulls{/number}","milestones_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/milestones{/number}","notifications_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/labels{/name}","releases_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/releases{/id}","deployments_url":"https://api.github.com/repos/redhatcz/Thesis-management-system/deployments","created_at":"2012-10-04T20:19:09Z","updated_at":"2016-06-21T13:09:30Z","pushed_at":"2016-08-31T11:49:02Z","git_url":"git://github.com/redhatcz/Thesis-management-system.git","ssh_url":"git@github.com:redhatcz/Thesis-management-system.git","clone_url":"https://github.com/redhatcz/Thesis-management-system.git","svn_url":"https://github.com/redhatcz/Thesis-management-system","homepage":"https://diplomky.redhat.com","size":3275,"stargazers_count":10,"watchers_count":10,"language":"Groovy","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":56,"forks":4,"open_issues":56,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redhatcz/Thesis-management-system/pulls/129"},"html":{"href":"https://github.com/redhatcz/Thesis-management-system/pull/129"},"issue":{"href":"https://api.github.com/repos/redhatcz/Thesis-management-system/issues/129"},"comments":{"href":"https://api.github.com/repos/redhatcz/Thesis-management-system/issues/129/comments"},"review_comments":{"href":"https://api.github.com/repos/redhatcz/Thesis-management-system/pulls/129/comments"},"review_comment":{"href":"https://api.github.com/repos/redhatcz/Thesis-management-system/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redhatcz/Thesis-management-system/pulls/129/commits"},"statuses":{"href":"https://api.github.com/repos/redhatcz/Thesis-management-system/statuses/ea1e7cccbd14d4f581b486a260e2e1a59eea574d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":589,"deletions":62,"changed_files":18}}
{"actor":{"display_login":"TheSprtCz"}}