{"action":"created","comment":{"url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/comments/138156379","pull_request_review_id":61915840,"id":138156379,"diff_hunk":"@@ -139,4 +139,12 @@ public boolean selecionarInscricao(Integer idInscricao,Integer selecionar) {\n \t\treturn inscricaoRepository.getSelecionados(selecao);\n \n \t}\n+\n+\t@Override\n+\tpublic boolean atualizarRank(Integer idInscricao, Integer posicao) {\n+\t\tInscricao inscricao = inscricaoRepository.findInscricaoById(idInscricao);\n+\t\tinscricao.setPosicaoRanking((posicao));\n+\t\tif(inscricaoRepository.save(inscricao)!= null) return true;","path":"auxilio-moradia/src/main/java/br/ufc/npi/auxilio/service/impl/InscricaoServiceImpl.java","position":18,"original_position":18,"commit_id":"f94d5d8db1dc733d9d42019bc94fba11abf255b2","original_commit_id":"f94d5d8db1dc733d9d42019bc94fba11abf255b2","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","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: [Avoid unnecessary if..then..else statements when returning booleans](https://www.codacy.com/app/NPI-UFC/gpa-assuntos-estudantis/pullRequest?prid=893767)","created_at":"2017-09-11T18:42:12Z","updated_at":"2017-09-11T18:42:12Z","html_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/537#discussion_r138156379","pull_request_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/537","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/comments/138156379"},"html":{"href":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/537#discussion_r138156379"},"pull_request":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/537"}}},"pull_request":{"url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/537","id":139617252,"html_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/537","diff_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/537.diff","patch_url":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/537.patch","issue_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues/537","number":537,"state":"open","locked":false,"title":"#551 mudar colocacao do aluno na tabela","user":{"login":"allanfvc","id":6895164,"avatar_url":"https://avatars2.githubusercontent.com/u/6895164?v=4","gravatar_id":"","url":"https://api.github.com/users/allanfvc","html_url":"https://github.com/allanfvc","followers_url":"https://api.github.com/users/allanfvc/followers","following_url":"https://api.github.com/users/allanfvc/following{/other_user}","gists_url":"https://api.github.com/users/allanfvc/gists{/gist_id}","starred_url":"https://api.github.com/users/allanfvc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanfvc/subscriptions","organizations_url":"https://api.github.com/users/allanfvc/orgs","repos_url":"https://api.github.com/users/allanfvc/repos","events_url":"https://api.github.com/users/allanfvc/events{/privacy}","received_events_url":"https://api.github.com/users/allanfvc/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-06T17:11:20Z","updated_at":"2017-09-11T18:42:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/537/commits","review_comments_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/537/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/537/comments","statuses_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/statuses/f94d5d8db1dc733d9d42019bc94fba11abf255b2","head":{"label":"npi-ufc-qxd:#551_Mudar_colocacao_do_aluno_na_tabela","ref":"#551_Mudar_colocacao_do_aluno_na_tabela","sha":"f94d5d8db1dc733d9d42019bc94fba11abf255b2","user":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars1.githubusercontent.com/u/6740262?v=4","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://avatars1.githubusercontent.com/u/6740262?v=4","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}","deployments_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/deployments","created_at":"2014-03-24T17:40:39Z","updated_at":"2016-10-19T22:08:56Z","pushed_at":"2017-09-11T18:39:37Z","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":25266,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":12,"forks":5,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"npi-ufc-qxd:master","ref":"master","sha":"af962b77e67f2ab717bf28a1cf017250c5fec261","user":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars1.githubusercontent.com/u/6740262?v=4","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://avatars1.githubusercontent.com/u/6740262?v=4","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}","deployments_url":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/deployments","created_at":"2014-03-24T17:40:39Z","updated_at":"2016-10-19T22:08:56Z","pushed_at":"2017-09-11T18:39:37Z","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":25266,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":12,"forks":5,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/537"},"html":{"href":"https://github.com/npi-ufc-qxd/gpa-assuntos-estudantis/pull/537"},"issue":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues/537"},"comments":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/issues/537/comments"},"review_comments":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/pulls/537/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/537/commits"},"statuses":{"href":"https://api.github.com/repos/npi-ufc-qxd/gpa-assuntos-estudantis/statuses/f94d5d8db1dc733d9d42019bc94fba11abf255b2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}