{"action":"created","comment":{"url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/comments/45740043","id":45740043,"diff_hunk":"@@ -250,45 +250,89 @@ public String atribuirComissao(@PathVariable(\"idSelecao\") Integer idSelecao, Mod\n \t\tmodel.addAttribute(\"selecao\", idSelecao);\n \t\tmodel.addAttribute(\"servidores\", this.servidorService.find(Servidor.class));\n \t\t\n-\t\treturn \"selecao/atribuir\";\n+\t\treturn \"coordenador/atribuirMembroBanca\";\n \t}\n \t\n-\t@RequestMapping(value = { \"selecao/comissao\" }, method = RequestMethod.POST)\n-\tpublic String atribuirComissao(@RequestParam(\"id\") Integer id,\n-\t\t\t@RequestParam(\"id1\") Integer id1, @RequestParam(\"id2\") Integer id2,\n-\t\t\t@RequestParam(\"id3\") Integer id3, Model model,\n-\t\t\tRedirectAttributes redirect) {\n+\t@RequestMapping(value = \"/comissao/excluir/{idSelecao}/{idServidor}\", method = RequestMethod.GET)\n+\tpublic String excluirMembroBanca(@PathVariable(\"idSelecao\") Integer idSelecao,@PathVariable(\"idServidor\") Integer idServidor, \n+\t\t\tModel model, RedirectAttributes redirect) {\n \t\t\n-\t\tif (id1 == null || id2 == null || id3 == null) {\n-\t\t\tmodel.addAttribute(\"selecao\", id);\n-\t\t\tmodel.addAttribute(\"servidores\", this.servidorService.find(Servidor.class));\n-\t\t\tmodel.addAttribute(\"erroMembros\", \"Informe os três membros.\");\n-\t\t\treturn \"selecao/atribuir\";\n-\t\t\t\n-\t\t} else if (id1.equals(id2) || id1.equals(id3) || id2.equals(id3)) {\n-\t\t\tmodel.addAttribute(\"selecao\", id);\n-\t\t\tmodel.addAttribute(\"servidores\",\n-\t\t\t\t\tservidorService.find(Servidor.class));\n-\t\t\tmodel.addAttribute(\"erroMembros\",\n-\t\t\t\t\t\"Não é permitida repetição de membros na banca.\");\n-\t\t\treturn \"selecao/atribuir\";\n+\t\tSelecao selecao = selecaoService.find(Selecao.class, idSelecao);\n+\t\t\n+\t\tServidor servidor = new Servidor(idServidor);","path":"aplicacoes/gpa-mae/src/main/java/br/ufc/quixada/npi/gpa/controller/CoordenadorController.java","position":112,"original_position":112,"commit_id":"fa6208aa7ea74a7b2eb5a452979f006dbba7dd1c","original_commit_id":"fa6208aa7ea74a7b2eb5a452979f006dbba7dd1c","user":{"login":"virginiafarias","id":7314878,"avatar_url":"https://avatars.githubusercontent.com/u/7314878?v=3","gravatar_id":"","url":"https://api.github.com/users/virginiafarias","html_url":"https://github.com/virginiafarias","followers_url":"https://api.github.com/users/virginiafarias/followers","following_url":"https://api.github.com/users/virginiafarias/following{/other_user}","gists_url":"https://api.github.com/users/virginiafarias/gists{/gist_id}","starred_url":"https://api.github.com/users/virginiafarias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virginiafarias/subscriptions","organizations_url":"https://api.github.com/users/virginiafarias/orgs","repos_url":"https://api.github.com/users/virginiafarias/repos","events_url":"https://api.github.com/users/virginiafarias/events{/privacy}","received_events_url":"https://api.github.com/users/virginiafarias/received_events","type":"User","site_admin":false},"body":"Não é necessário instanciar um servidor, já que é feita uma busca pelo id, que retornará um servidor cadastrado.","created_at":"2015-11-24T14:19:52Z","updated_at":"2015-11-24T14:19:52Z","html_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/136#discussion_r45740043","pull_request_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/136","_links":{"self":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/comments/45740043"},"html":{"href":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/136#discussion_r45740043"},"pull_request":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/136"}}},"pull_request":{"url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/136","id":51574674,"html_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/136","diff_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/136.diff","patch_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/136.patch","issue_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues/136","number":136,"state":"open","locked":false,"title":"Criacao da comissao de selecao","user":{"login":"kayroravel","id":12686793,"avatar_url":"https://avatars.githubusercontent.com/u/12686793?v=3","gravatar_id":"","url":"https://api.github.com/users/kayroravel","html_url":"https://github.com/kayroravel","followers_url":"https://api.github.com/users/kayroravel/followers","following_url":"https://api.github.com/users/kayroravel/following{/other_user}","gists_url":"https://api.github.com/users/kayroravel/gists{/gist_id}","starred_url":"https://api.github.com/users/kayroravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayroravel/subscriptions","organizations_url":"https://api.github.com/users/kayroravel/orgs","repos_url":"https://api.github.com/users/kayroravel/repos","events_url":"https://api.github.com/users/kayroravel/events{/privacy}","received_events_url":"https://api.github.com/users/kayroravel/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-23T20:21:28Z","updated_at":"2015-11-24T14:19:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e932527e34a754f6cf365aa73ace0885aad7151","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/136/commits","review_comments_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/136/comments","review_comment_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues/136/comments","statuses_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/statuses/fa6208aa7ea74a7b2eb5a452979f006dbba7dd1c","head":{"label":"npi-ufc-qxd:CriacaoDaComissaoDeSelecao","ref":"CriacaoDaComissaoDeSelecao","sha":"fa6208aa7ea74a7b2eb5a452979f006dbba7dd1c","user":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"repo":{"id":18071869,"name":"gpa-assuntos-estudantis","full_name":"npi-ufc-qxd/gpa-assuntos-estudantis","owner":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis","description":"Gestão de Programas Acadêmicos - Módulo de Assuntos Estudantis","fork":false,"url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis","forks_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/forks","keys_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/teams","hooks_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/hooks","issue_events_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues/events{/number}","events_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/events","assignees_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/assignees{/user}","branches_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/branches{/branch}","tags_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/tags","blobs_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/git/refs{/sha}","trees_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/statuses/{sha}","languages_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/languages","stargazers_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/stargazers","contributors_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/contributors","subscribers_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/subscribers","subscription_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/subscription","commits_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/commits{/sha}","git_commits_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/git/commits{/sha}","comments_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/comments{/number}","issue_comment_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues/comments{/number}","contents_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/contents/{+path}","compare_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/merges","archive_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/downloads","issues_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues{/number}","pulls_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls{/number}","milestones_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/milestones{/number}","notifications_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/labels{/name}","releases_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/releases{/id}","created_at":"2014-03-24T17:40:39Z","updated_at":"2015-05-06T18:32:25Z","pushed_at":"2015-11-23T20:21:28Z","git_url":"git://github.com/npi-ufc-qxd/gpa-assuntos-estudantis.git","ssh_url":"git@github.com:npi-ufc-qxd/gpa-assuntos-estudantis.git","clone_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis.git","svn_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis","homepage":null,"size":16142,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"npi-ufc-qxd:master","ref":"master","sha":"f367733da832198cd1c35acdab0eac029b3a13df","user":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"repo":{"id":18071869,"name":"gpa-assuntos-estudantis","full_name":"npi-ufc-qxd/gpa-assuntos-estudantis","owner":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis","description":"Gestão de Programas Acadêmicos - Módulo de Assuntos Estudantis","fork":false,"url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis","forks_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/forks","keys_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/teams","hooks_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/hooks","issue_events_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues/events{/number}","events_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/events","assignees_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/assignees{/user}","branches_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/branches{/branch}","tags_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/tags","blobs_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/git/refs{/sha}","trees_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/statuses/{sha}","languages_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/languages","stargazers_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/stargazers","contributors_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/contributors","subscribers_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/subscribers","subscription_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/subscription","commits_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/commits{/sha}","git_commits_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/git/commits{/sha}","comments_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/comments{/number}","issue_comment_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues/comments{/number}","contents_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/contents/{+path}","compare_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/merges","archive_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/downloads","issues_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues{/number}","pulls_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls{/number}","milestones_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/milestones{/number}","notifications_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/labels{/name}","releases_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/releases{/id}","created_at":"2014-03-24T17:40:39Z","updated_at":"2015-05-06T18:32:25Z","pushed_at":"2015-11-23T20:21:28Z","git_url":"git://github.com/npi-ufc-qxd/gpa-assuntos-estudantis.git","ssh_url":"git@github.com:npi-ufc-qxd/gpa-assuntos-estudantis.git","clone_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis.git","svn_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis","homepage":null,"size":16142,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/136"},"html":{"href":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/136"},"issue":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues/136"},"comments":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/statuses/fa6208aa7ea74a7b2eb5a452979f006dbba7dd1c"}}}}