{"action":"created","comment":{"url":"https://api.github.com/repos/qualfacul/hades/pulls/comments/79286860","id":79286860,"diff_hunk":"@@ -0,0 +1,40 @@\n+package com.qualfacul.hades.task;\n+\n+import static java.util.Arrays.stream;\n+\n+import java.util.List;\n+\n+import javax.transaction.Transactional;\n+\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+import org.springframework.beans.factory.annotation.Autowired;\n+\n+import com.qualfacul.hades.annotation.TaskComponent;\n+import com.qualfacul.hades.college.CollegeGrade;\n+import com.qualfacul.hades.college.CollegeRepository;\n+import com.qualfacul.hades.college.rank.CollegeRankService;\n+import com.qualfacul.hades.college.rank.CollegeRankType;\n+\n+@TaskComponent\n+public class CollegeRankingGenerator {\n+\tprivate static final Logger LOGGER = LoggerFactory.getLogger(CollegeRankingGenerator.class);\n+\n+\t@Autowired\n+\tprivate CollegeRepository collegeRepository;\n+\t@Autowired\n+\tprivate CollegeRankService collegeRankService;\n+\n+\t@Transactional\n+\tpublic void generateRanking() {\n+\t\tcollegeRepository.findAll().forEach(college -> {\n+\t\t\tLOGGER.info(\"GENERATING RANKING GRADE TO COLLEGE {}\", college.getId());","path":"src/main/java/com/qualfacul/hades/task/CollegeRankingGenerator.java","position":31,"original_position":31,"commit_id":"af0bd74c4d6885331b54448d6d8d5d42ba05ccf1","original_commit_id":"af0bd74c4d6885331b54448d6d8d5d42ba05ccf1","user":{"login":"ericdallo","id":7820865,"avatar_url":"https://avatars.githubusercontent.com/u/7820865?v=3","gravatar_id":"","url":"https://api.github.com/users/ericdallo","html_url":"https://github.com/ericdallo","followers_url":"https://api.github.com/users/ericdallo/followers","following_url":"https://api.github.com/users/ericdallo/following{/other_user}","gists_url":"https://api.github.com/users/ericdallo/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdallo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdallo/subscriptions","organizations_url":"https://api.github.com/users/ericdallo/orgs","repos_url":"https://api.github.com/users/ericdallo/repos","events_url":"https://api.github.com/users/ericdallo/events{/privacy}","received_events_url":"https://api.github.com/users/ericdallo/received_events","type":"User","site_admin":false},"body":"Não precisa gritar...","created_at":"2016-09-17T16:02:33Z","updated_at":"2016-09-17T16:03:06Z","html_url":"https://github.com/qualfacul/hades/pull/39#discussion_r79286860","pull_request_url":"https://api.github.com/repos/qualfacul/hades/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/qualfacul/hades/pulls/comments/79286860"},"html":{"href":"https://github.com/qualfacul/hades/pull/39#discussion_r79286860"},"pull_request":{"href":"https://api.github.com/repos/qualfacul/hades/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/qualfacul/hades/pulls/39","id":85345196,"html_url":"https://github.com/qualfacul/hades/pull/39","diff_url":"https://github.com/qualfacul/hades/pull/39.diff","patch_url":"https://github.com/qualfacul/hades/pull/39.patch","issue_url":"https://api.github.com/repos/qualfacul/hades/issues/39","number":39,"state":"open","locked":false,"title":"[66] - Adiciona task de geração do ranking dos colleges","user":{"login":"andrade-ramon","id":7884943,"avatar_url":"https://avatars.githubusercontent.com/u/7884943?v=3","gravatar_id":"","url":"https://api.github.com/users/andrade-ramon","html_url":"https://github.com/andrade-ramon","followers_url":"https://api.github.com/users/andrade-ramon/followers","following_url":"https://api.github.com/users/andrade-ramon/following{/other_user}","gists_url":"https://api.github.com/users/andrade-ramon/gists{/gist_id}","starred_url":"https://api.github.com/users/andrade-ramon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrade-ramon/subscriptions","organizations_url":"https://api.github.com/users/andrade-ramon/orgs","repos_url":"https://api.github.com/users/andrade-ramon/repos","events_url":"https://api.github.com/users/andrade-ramon/events{/privacy}","received_events_url":"https://api.github.com/users/andrade-ramon/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-15T04:53:49Z","updated_at":"2016-09-17T16:03:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cdff36ca12f6e8e8f5aade332c1b0b8a23ba4480","assignee":{"login":"andrade-ramon","id":7884943,"avatar_url":"https://avatars.githubusercontent.com/u/7884943?v=3","gravatar_id":"","url":"https://api.github.com/users/andrade-ramon","html_url":"https://github.com/andrade-ramon","followers_url":"https://api.github.com/users/andrade-ramon/followers","following_url":"https://api.github.com/users/andrade-ramon/following{/other_user}","gists_url":"https://api.github.com/users/andrade-ramon/gists{/gist_id}","starred_url":"https://api.github.com/users/andrade-ramon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrade-ramon/subscriptions","organizations_url":"https://api.github.com/users/andrade-ramon/orgs","repos_url":"https://api.github.com/users/andrade-ramon/repos","events_url":"https://api.github.com/users/andrade-ramon/events{/privacy}","received_events_url":"https://api.github.com/users/andrade-ramon/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrade-ramon","id":7884943,"avatar_url":"https://avatars.githubusercontent.com/u/7884943?v=3","gravatar_id":"","url":"https://api.github.com/users/andrade-ramon","html_url":"https://github.com/andrade-ramon","followers_url":"https://api.github.com/users/andrade-ramon/followers","following_url":"https://api.github.com/users/andrade-ramon/following{/other_user}","gists_url":"https://api.github.com/users/andrade-ramon/gists{/gist_id}","starred_url":"https://api.github.com/users/andrade-ramon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrade-ramon/subscriptions","organizations_url":"https://api.github.com/users/andrade-ramon/orgs","repos_url":"https://api.github.com/users/andrade-ramon/repos","events_url":"https://api.github.com/users/andrade-ramon/events{/privacy}","received_events_url":"https://api.github.com/users/andrade-ramon/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/qualfacul/hades/pulls/39/commits","review_comments_url":"https://api.github.com/repos/qualfacul/hades/pulls/39/comments","review_comment_url":"https://api.github.com/repos/qualfacul/hades/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qualfacul/hades/issues/39/comments","statuses_url":"https://api.github.com/repos/qualfacul/hades/statuses/af0bd74c4d6885331b54448d6d8d5d42ba05ccf1","head":{"label":"qualfacul:66","ref":"66","sha":"af0bd74c4d6885331b54448d6d8d5d42ba05ccf1","user":{"login":"qualfacul","id":19375297,"avatar_url":"https://avatars.githubusercontent.com/u/19375297?v=3","gravatar_id":"","url":"https://api.github.com/users/qualfacul","html_url":"https://github.com/qualfacul","followers_url":"https://api.github.com/users/qualfacul/followers","following_url":"https://api.github.com/users/qualfacul/following{/other_user}","gists_url":"https://api.github.com/users/qualfacul/gists{/gist_id}","starred_url":"https://api.github.com/users/qualfacul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qualfacul/subscriptions","organizations_url":"https://api.github.com/users/qualfacul/orgs","repos_url":"https://api.github.com/users/qualfacul/repos","events_url":"https://api.github.com/users/qualfacul/events{/privacy}","received_events_url":"https://api.github.com/users/qualfacul/received_events","type":"Organization","site_admin":false},"repo":{"id":52395775,"name":"hades","full_name":"qualfacul/hades","owner":{"login":"qualfacul","id":19375297,"avatar_url":"https://avatars.githubusercontent.com/u/19375297?v=3","gravatar_id":"","url":"https://api.github.com/users/qualfacul","html_url":"https://github.com/qualfacul","followers_url":"https://api.github.com/users/qualfacul/followers","following_url":"https://api.github.com/users/qualfacul/following{/other_user}","gists_url":"https://api.github.com/users/qualfacul/gists{/gist_id}","starred_url":"https://api.github.com/users/qualfacul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qualfacul/subscriptions","organizations_url":"https://api.github.com/users/qualfacul/orgs","repos_url":"https://api.github.com/users/qualfacul/repos","events_url":"https://api.github.com/users/qualfacul/events{/privacy}","received_events_url":"https://api.github.com/users/qualfacul/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qualfacul/hades","description":"","fork":false,"url":"https://api.github.com/repos/qualfacul/hades","forks_url":"https://api.github.com/repos/qualfacul/hades/forks","keys_url":"https://api.github.com/repos/qualfacul/hades/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qualfacul/hades/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qualfacul/hades/teams","hooks_url":"https://api.github.com/repos/qualfacul/hades/hooks","issue_events_url":"https://api.github.com/repos/qualfacul/hades/issues/events{/number}","events_url":"https://api.github.com/repos/qualfacul/hades/events","assignees_url":"https://api.github.com/repos/qualfacul/hades/assignees{/user}","branches_url":"https://api.github.com/repos/qualfacul/hades/branches{/branch}","tags_url":"https://api.github.com/repos/qualfacul/hades/tags","blobs_url":"https://api.github.com/repos/qualfacul/hades/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qualfacul/hades/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qualfacul/hades/git/refs{/sha}","trees_url":"https://api.github.com/repos/qualfacul/hades/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qualfacul/hades/statuses/{sha}","languages_url":"https://api.github.com/repos/qualfacul/hades/languages","stargazers_url":"https://api.github.com/repos/qualfacul/hades/stargazers","contributors_url":"https://api.github.com/repos/qualfacul/hades/contributors","subscribers_url":"https://api.github.com/repos/qualfacul/hades/subscribers","subscription_url":"https://api.github.com/repos/qualfacul/hades/subscription","commits_url":"https://api.github.com/repos/qualfacul/hades/commits{/sha}","git_commits_url":"https://api.github.com/repos/qualfacul/hades/git/commits{/sha}","comments_url":"https://api.github.com/repos/qualfacul/hades/comments{/number}","issue_comment_url":"https://api.github.com/repos/qualfacul/hades/issues/comments{/number}","contents_url":"https://api.github.com/repos/qualfacul/hades/contents/{+path}","compare_url":"https://api.github.com/repos/qualfacul/hades/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qualfacul/hades/merges","archive_url":"https://api.github.com/repos/qualfacul/hades/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qualfacul/hades/downloads","issues_url":"https://api.github.com/repos/qualfacul/hades/issues{/number}","pulls_url":"https://api.github.com/repos/qualfacul/hades/pulls{/number}","milestones_url":"https://api.github.com/repos/qualfacul/hades/milestones{/number}","notifications_url":"https://api.github.com/repos/qualfacul/hades/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qualfacul/hades/labels{/name}","releases_url":"https://api.github.com/repos/qualfacul/hades/releases{/id}","deployments_url":"https://api.github.com/repos/qualfacul/hades/deployments","created_at":"2016-02-23T22:19:53Z","updated_at":"2016-06-23T19:13:36Z","pushed_at":"2016-09-17T15:49:23Z","git_url":"git://github.com/qualfacul/hades.git","ssh_url":"git@github.com:qualfacul/hades.git","clone_url":"https://github.com/qualfacul/hades.git","svn_url":"https://github.com/qualfacul/hades","homepage":null,"size":577,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"qualfacul:master","ref":"master","sha":"9093dbe2f04db39ec5a8cb5442d938d6d550a00c","user":{"login":"qualfacul","id":19375297,"avatar_url":"https://avatars.githubusercontent.com/u/19375297?v=3","gravatar_id":"","url":"https://api.github.com/users/qualfacul","html_url":"https://github.com/qualfacul","followers_url":"https://api.github.com/users/qualfacul/followers","following_url":"https://api.github.com/users/qualfacul/following{/other_user}","gists_url":"https://api.github.com/users/qualfacul/gists{/gist_id}","starred_url":"https://api.github.com/users/qualfacul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qualfacul/subscriptions","organizations_url":"https://api.github.com/users/qualfacul/orgs","repos_url":"https://api.github.com/users/qualfacul/repos","events_url":"https://api.github.com/users/qualfacul/events{/privacy}","received_events_url":"https://api.github.com/users/qualfacul/received_events","type":"Organization","site_admin":false},"repo":{"id":52395775,"name":"hades","full_name":"qualfacul/hades","owner":{"login":"qualfacul","id":19375297,"avatar_url":"https://avatars.githubusercontent.com/u/19375297?v=3","gravatar_id":"","url":"https://api.github.com/users/qualfacul","html_url":"https://github.com/qualfacul","followers_url":"https://api.github.com/users/qualfacul/followers","following_url":"https://api.github.com/users/qualfacul/following{/other_user}","gists_url":"https://api.github.com/users/qualfacul/gists{/gist_id}","starred_url":"https://api.github.com/users/qualfacul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qualfacul/subscriptions","organizations_url":"https://api.github.com/users/qualfacul/orgs","repos_url":"https://api.github.com/users/qualfacul/repos","events_url":"https://api.github.com/users/qualfacul/events{/privacy}","received_events_url":"https://api.github.com/users/qualfacul/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qualfacul/hades","description":"","fork":false,"url":"https://api.github.com/repos/qualfacul/hades","forks_url":"https://api.github.com/repos/qualfacul/hades/forks","keys_url":"https://api.github.com/repos/qualfacul/hades/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qualfacul/hades/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qualfacul/hades/teams","hooks_url":"https://api.github.com/repos/qualfacul/hades/hooks","issue_events_url":"https://api.github.com/repos/qualfacul/hades/issues/events{/number}","events_url":"https://api.github.com/repos/qualfacul/hades/events","assignees_url":"https://api.github.com/repos/qualfacul/hades/assignees{/user}","branches_url":"https://api.github.com/repos/qualfacul/hades/branches{/branch}","tags_url":"https://api.github.com/repos/qualfacul/hades/tags","blobs_url":"https://api.github.com/repos/qualfacul/hades/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qualfacul/hades/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qualfacul/hades/git/refs{/sha}","trees_url":"https://api.github.com/repos/qualfacul/hades/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qualfacul/hades/statuses/{sha}","languages_url":"https://api.github.com/repos/qualfacul/hades/languages","stargazers_url":"https://api.github.com/repos/qualfacul/hades/stargazers","contributors_url":"https://api.github.com/repos/qualfacul/hades/contributors","subscribers_url":"https://api.github.com/repos/qualfacul/hades/subscribers","subscription_url":"https://api.github.com/repos/qualfacul/hades/subscription","commits_url":"https://api.github.com/repos/qualfacul/hades/commits{/sha}","git_commits_url":"https://api.github.com/repos/qualfacul/hades/git/commits{/sha}","comments_url":"https://api.github.com/repos/qualfacul/hades/comments{/number}","issue_comment_url":"https://api.github.com/repos/qualfacul/hades/issues/comments{/number}","contents_url":"https://api.github.com/repos/qualfacul/hades/contents/{+path}","compare_url":"https://api.github.com/repos/qualfacul/hades/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qualfacul/hades/merges","archive_url":"https://api.github.com/repos/qualfacul/hades/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qualfacul/hades/downloads","issues_url":"https://api.github.com/repos/qualfacul/hades/issues{/number}","pulls_url":"https://api.github.com/repos/qualfacul/hades/pulls{/number}","milestones_url":"https://api.github.com/repos/qualfacul/hades/milestones{/number}","notifications_url":"https://api.github.com/repos/qualfacul/hades/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qualfacul/hades/labels{/name}","releases_url":"https://api.github.com/repos/qualfacul/hades/releases{/id}","deployments_url":"https://api.github.com/repos/qualfacul/hades/deployments","created_at":"2016-02-23T22:19:53Z","updated_at":"2016-06-23T19:13:36Z","pushed_at":"2016-09-17T15:49:23Z","git_url":"git://github.com/qualfacul/hades.git","ssh_url":"git@github.com:qualfacul/hades.git","clone_url":"https://github.com/qualfacul/hades.git","svn_url":"https://github.com/qualfacul/hades","homepage":null,"size":577,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qualfacul/hades/pulls/39"},"html":{"href":"https://github.com/qualfacul/hades/pull/39"},"issue":{"href":"https://api.github.com/repos/qualfacul/hades/issues/39"},"comments":{"href":"https://api.github.com/repos/qualfacul/hades/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/qualfacul/hades/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/qualfacul/hades/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qualfacul/hades/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/qualfacul/hades/statuses/af0bd74c4d6885331b54448d6d8d5d42ba05ccf1"}}}}
{"actor":{"display_login":"ericdallo"}}