{"action":"created","comment":{"url":"https://api.github.com/repos/ines-escin/Ress/pulls/comments/90793544","pull_request_review_id":11308995,"id":90793544,"diff_hunk":"@@ -104,30 +104,32 @@ class CollectorDashboardController {\n         SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n         def coletas = PickupRequest.findAllByStatus(true).sort{it.date}\n         def datas = coletas.collect{it -> it.date}\n-        if(tempo == 'month'){\n+        verifyTemporality(tempo, datas)\n+        def stringDates = datas.collect{it -> formatter.format(it)}\n+        return stringDates\n+    }\n+\n+    private void verifyTemporality(String tempo, List<Date> datas) {\n+        if (tempo == 'month') {\n             Calendar c = Calendar.getInstance()\n             Calendar current = Calendar.getInstance()\n-            for(int j = 0; j<datas.size(); j++){\n+            for (int j = 0; j < datas.size(); j++) {","path":"grails-app/controllers/br/ufpe/cin/ines/ress/residuecollector/CollectorDashboardController.groovy","position":null,"original_position":15,"commit_id":"b588c4470ad79185dcc09adba136409a14f69684","original_commit_id":"7d27759c8a9f2a6ef5ce674d1256ceeec1d35e5e","user":{"login":"plal","id":6364432,"avatar_url":"https://avatars.githubusercontent.com/u/6364432?v=3","gravatar_id":"","url":"https://api.github.com/users/plal","html_url":"https://github.com/plal","followers_url":"https://api.github.com/users/plal/followers","following_url":"https://api.github.com/users/plal/following{/other_user}","gists_url":"https://api.github.com/users/plal/gists{/gist_id}","starred_url":"https://api.github.com/users/plal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plal/subscriptions","organizations_url":"https://api.github.com/users/plal/orgs","repos_url":"https://api.github.com/users/plal/repos","events_url":"https://api.github.com/users/plal/events{/privacy}","received_events_url":"https://api.github.com/users/plal/received_events","type":"User","site_admin":false},"body":"só mudou os espaços?","created_at":"2016-12-05T01:39:25Z","updated_at":"2016-12-05T01:39:25Z","html_url":"https://github.com/ines-escin/Ress/pull/2#discussion_r90793544","pull_request_url":"https://api.github.com/repos/ines-escin/Ress/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/ines-escin/Ress/pulls/comments/90793544"},"html":{"href":"https://github.com/ines-escin/Ress/pull/2#discussion_r90793544"},"pull_request":{"href":"https://api.github.com/repos/ines-escin/Ress/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/ines-escin/Ress/pulls/2","id":92704530,"html_url":"https://github.com/ines-escin/Ress/pull/2","diff_url":"https://github.com/ines-escin/Ress/pull/2.diff","patch_url":"https://github.com/ines-escin/Ress/pull/2.patch","issue_url":"https://api.github.com/repos/ines-escin/Ress/issues/2","number":2,"state":"open","locked":false,"title":"Visualização de Gráficos","user":{"login":"crp3","id":13001828,"avatar_url":"https://avatars.githubusercontent.com/u/13001828?v=3","gravatar_id":"","url":"https://api.github.com/users/crp3","html_url":"https://github.com/crp3","followers_url":"https://api.github.com/users/crp3/followers","following_url":"https://api.github.com/users/crp3/following{/other_user}","gists_url":"https://api.github.com/users/crp3/gists{/gist_id}","starred_url":"https://api.github.com/users/crp3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crp3/subscriptions","organizations_url":"https://api.github.com/users/crp3/orgs","repos_url":"https://api.github.com/users/crp3/repos","events_url":"https://api.github.com/users/crp3/events{/privacy}","received_events_url":"https://api.github.com/users/crp3/received_events","type":"User","site_admin":false},"body":"Os requisitos iniciais discutidos na primeira conversa com os stakeholders para a feature de visualização de gráficos foram: Dados que coletas foram realizadas no mês atual, o usuário deve ser capaz de visualizar coletas realizadas no último mês através de gráficos, o mesmo também se aplicando para anos. Caso não hajam coletas realizadas, o sistema imprimiria um gráfico vazio.","created_at":"2016-11-08T02:29:31Z","updated_at":"2016-12-05T01:39:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"743effa191ec0e06de5751c1341f6f94fe51822f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ines-escin/Ress/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ines-escin/Ress/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ines-escin/Ress/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ines-escin/Ress/issues/2/comments","statuses_url":"https://api.github.com/repos/ines-escin/Ress/statuses/b588c4470ad79185dcc09adba136409a14f69684","head":{"label":"crp3:master","ref":"master","sha":"b588c4470ad79185dcc09adba136409a14f69684","user":{"login":"crp3","id":13001828,"avatar_url":"https://avatars.githubusercontent.com/u/13001828?v=3","gravatar_id":"","url":"https://api.github.com/users/crp3","html_url":"https://github.com/crp3","followers_url":"https://api.github.com/users/crp3/followers","following_url":"https://api.github.com/users/crp3/following{/other_user}","gists_url":"https://api.github.com/users/crp3/gists{/gist_id}","starred_url":"https://api.github.com/users/crp3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crp3/subscriptions","organizations_url":"https://api.github.com/users/crp3/orgs","repos_url":"https://api.github.com/users/crp3/repos","events_url":"https://api.github.com/users/crp3/events{/privacy}","received_events_url":"https://api.github.com/users/crp3/received_events","type":"User","site_admin":false},"repo":{"id":69887065,"name":"Ress","full_name":"crp3/Ress","owner":{"login":"crp3","id":13001828,"avatar_url":"https://avatars.githubusercontent.com/u/13001828?v=3","gravatar_id":"","url":"https://api.github.com/users/crp3","html_url":"https://github.com/crp3","followers_url":"https://api.github.com/users/crp3/followers","following_url":"https://api.github.com/users/crp3/following{/other_user}","gists_url":"https://api.github.com/users/crp3/gists{/gist_id}","starred_url":"https://api.github.com/users/crp3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crp3/subscriptions","organizations_url":"https://api.github.com/users/crp3/orgs","repos_url":"https://api.github.com/users/crp3/repos","events_url":"https://api.github.com/users/crp3/events{/privacy}","received_events_url":"https://api.github.com/users/crp3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crp3/Ress","description":null,"fork":true,"url":"https://api.github.com/repos/crp3/Ress","forks_url":"https://api.github.com/repos/crp3/Ress/forks","keys_url":"https://api.github.com/repos/crp3/Ress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crp3/Ress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crp3/Ress/teams","hooks_url":"https://api.github.com/repos/crp3/Ress/hooks","issue_events_url":"https://api.github.com/repos/crp3/Ress/issues/events{/number}","events_url":"https://api.github.com/repos/crp3/Ress/events","assignees_url":"https://api.github.com/repos/crp3/Ress/assignees{/user}","branches_url":"https://api.github.com/repos/crp3/Ress/branches{/branch}","tags_url":"https://api.github.com/repos/crp3/Ress/tags","blobs_url":"https://api.github.com/repos/crp3/Ress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crp3/Ress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crp3/Ress/git/refs{/sha}","trees_url":"https://api.github.com/repos/crp3/Ress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crp3/Ress/statuses/{sha}","languages_url":"https://api.github.com/repos/crp3/Ress/languages","stargazers_url":"https://api.github.com/repos/crp3/Ress/stargazers","contributors_url":"https://api.github.com/repos/crp3/Ress/contributors","subscribers_url":"https://api.github.com/repos/crp3/Ress/subscribers","subscription_url":"https://api.github.com/repos/crp3/Ress/subscription","commits_url":"https://api.github.com/repos/crp3/Ress/commits{/sha}","git_commits_url":"https://api.github.com/repos/crp3/Ress/git/commits{/sha}","comments_url":"https://api.github.com/repos/crp3/Ress/comments{/number}","issue_comment_url":"https://api.github.com/repos/crp3/Ress/issues/comments{/number}","contents_url":"https://api.github.com/repos/crp3/Ress/contents/{+path}","compare_url":"https://api.github.com/repos/crp3/Ress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crp3/Ress/merges","archive_url":"https://api.github.com/repos/crp3/Ress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crp3/Ress/downloads","issues_url":"https://api.github.com/repos/crp3/Ress/issues{/number}","pulls_url":"https://api.github.com/repos/crp3/Ress/pulls{/number}","milestones_url":"https://api.github.com/repos/crp3/Ress/milestones{/number}","notifications_url":"https://api.github.com/repos/crp3/Ress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crp3/Ress/labels{/name}","releases_url":"https://api.github.com/repos/crp3/Ress/releases{/id}","deployments_url":"https://api.github.com/repos/crp3/Ress/deployments","created_at":"2016-10-03T16:03:51Z","updated_at":"2016-10-03T16:03:53Z","pushed_at":"2016-11-30T14:31:37Z","git_url":"git://github.com/crp3/Ress.git","ssh_url":"git@github.com:crp3/Ress.git","clone_url":"https://github.com/crp3/Ress.git","svn_url":"https://github.com/crp3/Ress","homepage":null,"size":8620,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"ines-escin:master","ref":"master","sha":"bf022aad482c473874d0d8cfe0b8a92745e3b9c5","user":{"login":"ines-escin","id":12861416,"avatar_url":"https://avatars.githubusercontent.com/u/12861416?v=3","gravatar_id":"","url":"https://api.github.com/users/ines-escin","html_url":"https://github.com/ines-escin","followers_url":"https://api.github.com/users/ines-escin/followers","following_url":"https://api.github.com/users/ines-escin/following{/other_user}","gists_url":"https://api.github.com/users/ines-escin/gists{/gist_id}","starred_url":"https://api.github.com/users/ines-escin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ines-escin/subscriptions","organizations_url":"https://api.github.com/users/ines-escin/orgs","repos_url":"https://api.github.com/users/ines-escin/repos","events_url":"https://api.github.com/users/ines-escin/events{/privacy}","received_events_url":"https://api.github.com/users/ines-escin/received_events","type":"Organization","site_admin":false},"repo":{"id":67163308,"name":"Ress","full_name":"ines-escin/Ress","owner":{"login":"ines-escin","id":12861416,"avatar_url":"https://avatars.githubusercontent.com/u/12861416?v=3","gravatar_id":"","url":"https://api.github.com/users/ines-escin","html_url":"https://github.com/ines-escin","followers_url":"https://api.github.com/users/ines-escin/followers","following_url":"https://api.github.com/users/ines-escin/following{/other_user}","gists_url":"https://api.github.com/users/ines-escin/gists{/gist_id}","starred_url":"https://api.github.com/users/ines-escin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ines-escin/subscriptions","organizations_url":"https://api.github.com/users/ines-escin/orgs","repos_url":"https://api.github.com/users/ines-escin/repos","events_url":"https://api.github.com/users/ines-escin/events{/privacy}","received_events_url":"https://api.github.com/users/ines-escin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ines-escin/Ress","description":null,"fork":false,"url":"https://api.github.com/repos/ines-escin/Ress","forks_url":"https://api.github.com/repos/ines-escin/Ress/forks","keys_url":"https://api.github.com/repos/ines-escin/Ress/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ines-escin/Ress/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ines-escin/Ress/teams","hooks_url":"https://api.github.com/repos/ines-escin/Ress/hooks","issue_events_url":"https://api.github.com/repos/ines-escin/Ress/issues/events{/number}","events_url":"https://api.github.com/repos/ines-escin/Ress/events","assignees_url":"https://api.github.com/repos/ines-escin/Ress/assignees{/user}","branches_url":"https://api.github.com/repos/ines-escin/Ress/branches{/branch}","tags_url":"https://api.github.com/repos/ines-escin/Ress/tags","blobs_url":"https://api.github.com/repos/ines-escin/Ress/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ines-escin/Ress/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ines-escin/Ress/git/refs{/sha}","trees_url":"https://api.github.com/repos/ines-escin/Ress/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ines-escin/Ress/statuses/{sha}","languages_url":"https://api.github.com/repos/ines-escin/Ress/languages","stargazers_url":"https://api.github.com/repos/ines-escin/Ress/stargazers","contributors_url":"https://api.github.com/repos/ines-escin/Ress/contributors","subscribers_url":"https://api.github.com/repos/ines-escin/Ress/subscribers","subscription_url":"https://api.github.com/repos/ines-escin/Ress/subscription","commits_url":"https://api.github.com/repos/ines-escin/Ress/commits{/sha}","git_commits_url":"https://api.github.com/repos/ines-escin/Ress/git/commits{/sha}","comments_url":"https://api.github.com/repos/ines-escin/Ress/comments{/number}","issue_comment_url":"https://api.github.com/repos/ines-escin/Ress/issues/comments{/number}","contents_url":"https://api.github.com/repos/ines-escin/Ress/contents/{+path}","compare_url":"https://api.github.com/repos/ines-escin/Ress/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ines-escin/Ress/merges","archive_url":"https://api.github.com/repos/ines-escin/Ress/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ines-escin/Ress/downloads","issues_url":"https://api.github.com/repos/ines-escin/Ress/issues{/number}","pulls_url":"https://api.github.com/repos/ines-escin/Ress/pulls{/number}","milestones_url":"https://api.github.com/repos/ines-escin/Ress/milestones{/number}","notifications_url":"https://api.github.com/repos/ines-escin/Ress/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ines-escin/Ress/labels{/name}","releases_url":"https://api.github.com/repos/ines-escin/Ress/releases{/id}","deployments_url":"https://api.github.com/repos/ines-escin/Ress/deployments","created_at":"2016-09-01T20:16:17Z","updated_at":"2016-11-04T00:51:27Z","pushed_at":"2016-12-01T01:31:15Z","git_url":"git://github.com/ines-escin/Ress.git","ssh_url":"git@github.com:ines-escin/Ress.git","clone_url":"https://github.com/ines-escin/Ress.git","svn_url":"https://github.com/ines-escin/Ress","homepage":null,"size":5196,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ines-escin/Ress/pulls/2"},"html":{"href":"https://github.com/ines-escin/Ress/pull/2"},"issue":{"href":"https://api.github.com/repos/ines-escin/Ress/issues/2"},"comments":{"href":"https://api.github.com/repos/ines-escin/Ress/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ines-escin/Ress/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ines-escin/Ress/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ines-escin/Ress/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ines-escin/Ress/statuses/b588c4470ad79185dcc09adba136409a14f69684"}}}}
{"actor":{"display_login":"plal"}}