{"action":"created","comment":{"url":"https://api.github.com/repos/diging/giles-eco-september/pulls/comments/184525810","pull_request_review_id":115742602,"id":184525810,"diff_hunk":"@@ -8,27 +8,60 @@\n import org.springframework.ui.Model;\n import org.springframework.web.bind.annotation.RequestMapping;\n import org.springframework.web.bind.annotation.RequestParam;\n+import org.springframework.web.bind.annotation.ResponseBody;\n \n+import edu.asu.diging.gilesecosystem.september.core.datatable.IDataTableData;\n+import edu.asu.diging.gilesecosystem.september.core.datatable.impl.DataTableData;\n+import edu.asu.diging.gilesecosystem.september.core.db.IMessageDbClient;\n import edu.asu.diging.gilesecosystem.september.core.model.IMessage;\n import edu.asu.diging.gilesecosystem.september.core.service.IMessageManager;\n \n @Controller\n public class HomeController {\n-    \n+\n     @Autowired\n     private IMessageManager manager;\n \n+    @Autowired\n+    private IMessageDbClient dbClient;\n+\n     @RequestMapping(value = \"/\")\n     public String home(Principal principal, Model model, @RequestParam(defaultValue = \"0\") int page) {\n         if (principal == null || principal.getName() == null || principal.getName().equals(\"anonymousUser\")) {\n             return \"home\";\n         }\n-        \n+\n         List<IMessage> messages = manager.getMessages(page);\n         model.addAttribute(\"messages\", messages);\n         model.addAttribute(\"totalPages\", manager.getNumberOfPages());\n         model.addAttribute(\"currentPageValue\", page);\n-        \n         return \"home\";\n     }\n+\n+    @RequestMapping(value = \"/datatable\")\n+    public @ResponseBody IDataTableData doGet(@RequestParam int draw, @RequestParam int start, @RequestParam String type)\n+            throws Exception {\n+        IDataTableData dataTableData = new DataTableData();\n+        List<IMessage> dataTableMessages = null;\n+        int totalRecords = 0;\n+        int filteredRecords = 0;\n+        int offset = start / 10;","path":"september/src/main/java/edu/asu/diging/gilesecosystem/september/web/HomeController.java","position":44,"original_position":44,"commit_id":"733d9fd0630f3f9178df1d98cfa6e51f2e6dbbba","original_commit_id":"733d9fd0630f3f9178df1d98cfa6e51f2e6dbbba","user":{"login":"jdamerow","id":8881141,"avatar_url":"https://avatars2.githubusercontent.com/u/8881141?v=4","gravatar_id":"","url":"https://api.github.com/users/jdamerow","html_url":"https://github.com/jdamerow","followers_url":"https://api.github.com/users/jdamerow/followers","following_url":"https://api.github.com/users/jdamerow/following{/other_user}","gists_url":"https://api.github.com/users/jdamerow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdamerow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdamerow/subscriptions","organizations_url":"https://api.github.com/users/jdamerow/orgs","repos_url":"https://api.github.com/users/jdamerow/repos","events_url":"https://api.github.com/users/jdamerow/events{/privacy}","received_events_url":"https://api.github.com/users/jdamerow/received_events","type":"User","site_admin":false},"body":"if i'm not completely mistaken, this is a configurable parameter and should be taken from the config file.","created_at":"2018-04-26T20:47:12Z","updated_at":"2018-04-26T20:47:12Z","html_url":"https://github.com/diging/giles-eco-september/pull/7#discussion_r184525810","pull_request_url":"https://api.github.com/repos/diging/giles-eco-september/pulls/7","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/diging/giles-eco-september/pulls/comments/184525810"},"html":{"href":"https://github.com/diging/giles-eco-september/pull/7#discussion_r184525810"},"pull_request":{"href":"https://api.github.com/repos/diging/giles-eco-september/pulls/7"}},"in_reply_to_id":183521948},"pull_request":{"url":"https://api.github.com/repos/diging/giles-eco-september/pulls/7","id":163552839,"html_url":"https://github.com/diging/giles-eco-september/pull/7","diff_url":"https://github.com/diging/giles-eco-september/pull/7.diff","patch_url":"https://github.com/diging/giles-eco-september/pull/7.patch","issue_url":"https://api.github.com/repos/diging/giles-eco-september/issues/7","number":7,"state":"closed","locked":false,"title":"Story/geco 78","user":{"login":"abhikrish503501","id":21203098,"avatar_url":"https://avatars0.githubusercontent.com/u/21203098?v=4","gravatar_id":"","url":"https://api.github.com/users/abhikrish503501","html_url":"https://github.com/abhikrish503501","followers_url":"https://api.github.com/users/abhikrish503501/followers","following_url":"https://api.github.com/users/abhikrish503501/following{/other_user}","gists_url":"https://api.github.com/users/abhikrish503501/gists{/gist_id}","starred_url":"https://api.github.com/users/abhikrish503501/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhikrish503501/subscriptions","organizations_url":"https://api.github.com/users/abhikrish503501/orgs","repos_url":"https://api.github.com/users/abhikrish503501/repos","events_url":"https://api.github.com/users/abhikrish503501/events{/privacy}","received_events_url":"https://api.github.com/users/abhikrish503501/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-01-17T21:07:45Z","updated_at":"2018-04-26T20:47:12Z","closed_at":"2018-04-23T20:13:50Z","merged_at":null,"merge_commit_sha":"4da139bc4ed85471f481d521147b904510caaf97","assignee":null,"assignees":[],"requested_reviewers":[{"login":"chiraag-subramanian","id":23473237,"avatar_url":"https://avatars1.githubusercontent.com/u/23473237?v=4","gravatar_id":"","url":"https://api.github.com/users/chiraag-subramanian","html_url":"https://github.com/chiraag-subramanian","followers_url":"https://api.github.com/users/chiraag-subramanian/followers","following_url":"https://api.github.com/users/chiraag-subramanian/following{/other_user}","gists_url":"https://api.github.com/users/chiraag-subramanian/gists{/gist_id}","starred_url":"https://api.github.com/users/chiraag-subramanian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiraag-subramanian/subscriptions","organizations_url":"https://api.github.com/users/chiraag-subramanian/orgs","repos_url":"https://api.github.com/users/chiraag-subramanian/repos","events_url":"https://api.github.com/users/chiraag-subramanian/events{/privacy}","received_events_url":"https://api.github.com/users/chiraag-subramanian/received_events","type":"User","site_admin":false},{"login":"susmitha8","id":24259698,"avatar_url":"https://avatars3.githubusercontent.com/u/24259698?v=4","gravatar_id":"","url":"https://api.github.com/users/susmitha8","html_url":"https://github.com/susmitha8","followers_url":"https://api.github.com/users/susmitha8/followers","following_url":"https://api.github.com/users/susmitha8/following{/other_user}","gists_url":"https://api.github.com/users/susmitha8/gists{/gist_id}","starred_url":"https://api.github.com/users/susmitha8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/susmitha8/subscriptions","organizations_url":"https://api.github.com/users/susmitha8/orgs","repos_url":"https://api.github.com/users/susmitha8/repos","events_url":"https://api.github.com/users/susmitha8/events{/privacy}","received_events_url":"https://api.github.com/users/susmitha8/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/diging/giles-eco-september/pulls/7/commits","review_comments_url":"https://api.github.com/repos/diging/giles-eco-september/pulls/7/comments","review_comment_url":"https://api.github.com/repos/diging/giles-eco-september/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diging/giles-eco-september/issues/7/comments","statuses_url":"https://api.github.com/repos/diging/giles-eco-september/statuses/733d9fd0630f3f9178df1d98cfa6e51f2e6dbbba","head":{"label":"diging:story/GECO-78","ref":"story/GECO-78","sha":"733d9fd0630f3f9178df1d98cfa6e51f2e6dbbba","user":{"login":"diging","id":5402168,"avatar_url":"https://avatars2.githubusercontent.com/u/5402168?v=4","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":85635765,"name":"giles-eco-september","full_name":"diging/giles-eco-september","owner":{"login":"diging","id":5402168,"avatar_url":"https://avatars2.githubusercontent.com/u/5402168?v=4","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/giles-eco-september","description":"Monitoring app for the Giles Ecosystem","fork":false,"url":"https://api.github.com/repos/diging/giles-eco-september","forks_url":"https://api.github.com/repos/diging/giles-eco-september/forks","keys_url":"https://api.github.com/repos/diging/giles-eco-september/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/giles-eco-september/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/giles-eco-september/teams","hooks_url":"https://api.github.com/repos/diging/giles-eco-september/hooks","issue_events_url":"https://api.github.com/repos/diging/giles-eco-september/issues/events{/number}","events_url":"https://api.github.com/repos/diging/giles-eco-september/events","assignees_url":"https://api.github.com/repos/diging/giles-eco-september/assignees{/user}","branches_url":"https://api.github.com/repos/diging/giles-eco-september/branches{/branch}","tags_url":"https://api.github.com/repos/diging/giles-eco-september/tags","blobs_url":"https://api.github.com/repos/diging/giles-eco-september/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/giles-eco-september/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/giles-eco-september/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/giles-eco-september/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/giles-eco-september/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/giles-eco-september/languages","stargazers_url":"https://api.github.com/repos/diging/giles-eco-september/stargazers","contributors_url":"https://api.github.com/repos/diging/giles-eco-september/contributors","subscribers_url":"https://api.github.com/repos/diging/giles-eco-september/subscribers","subscription_url":"https://api.github.com/repos/diging/giles-eco-september/subscription","commits_url":"https://api.github.com/repos/diging/giles-eco-september/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/giles-eco-september/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/giles-eco-september/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/giles-eco-september/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/giles-eco-september/contents/{+path}","compare_url":"https://api.github.com/repos/diging/giles-eco-september/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/giles-eco-september/merges","archive_url":"https://api.github.com/repos/diging/giles-eco-september/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/giles-eco-september/downloads","issues_url":"https://api.github.com/repos/diging/giles-eco-september/issues{/number}","pulls_url":"https://api.github.com/repos/diging/giles-eco-september/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/giles-eco-september/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/giles-eco-september/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/giles-eco-september/labels{/name}","releases_url":"https://api.github.com/repos/diging/giles-eco-september/releases{/id}","deployments_url":"https://api.github.com/repos/diging/giles-eco-september/deployments","created_at":"2017-03-20T23:01:24Z","updated_at":"2018-03-21T23:09:45Z","pushed_at":"2018-04-19T16:54:10Z","git_url":"git://github.com/diging/giles-eco-september.git","ssh_url":"git@github.com:diging/giles-eco-september.git","clone_url":"https://github.com/diging/giles-eco-september.git","svn_url":"https://github.com/diging/giles-eco-september","homepage":null,"size":1143,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"diging:develop","ref":"develop","sha":"e61bb61da143c0d092c9d22425bfbd440b37ba08","user":{"login":"diging","id":5402168,"avatar_url":"https://avatars2.githubusercontent.com/u/5402168?v=4","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":85635765,"name":"giles-eco-september","full_name":"diging/giles-eco-september","owner":{"login":"diging","id":5402168,"avatar_url":"https://avatars2.githubusercontent.com/u/5402168?v=4","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/giles-eco-september","description":"Monitoring app for the Giles Ecosystem","fork":false,"url":"https://api.github.com/repos/diging/giles-eco-september","forks_url":"https://api.github.com/repos/diging/giles-eco-september/forks","keys_url":"https://api.github.com/repos/diging/giles-eco-september/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/giles-eco-september/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/giles-eco-september/teams","hooks_url":"https://api.github.com/repos/diging/giles-eco-september/hooks","issue_events_url":"https://api.github.com/repos/diging/giles-eco-september/issues/events{/number}","events_url":"https://api.github.com/repos/diging/giles-eco-september/events","assignees_url":"https://api.github.com/repos/diging/giles-eco-september/assignees{/user}","branches_url":"https://api.github.com/repos/diging/giles-eco-september/branches{/branch}","tags_url":"https://api.github.com/repos/diging/giles-eco-september/tags","blobs_url":"https://api.github.com/repos/diging/giles-eco-september/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/giles-eco-september/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/giles-eco-september/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/giles-eco-september/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/giles-eco-september/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/giles-eco-september/languages","stargazers_url":"https://api.github.com/repos/diging/giles-eco-september/stargazers","contributors_url":"https://api.github.com/repos/diging/giles-eco-september/contributors","subscribers_url":"https://api.github.com/repos/diging/giles-eco-september/subscribers","subscription_url":"https://api.github.com/repos/diging/giles-eco-september/subscription","commits_url":"https://api.github.com/repos/diging/giles-eco-september/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/giles-eco-september/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/giles-eco-september/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/giles-eco-september/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/giles-eco-september/contents/{+path}","compare_url":"https://api.github.com/repos/diging/giles-eco-september/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/giles-eco-september/merges","archive_url":"https://api.github.com/repos/diging/giles-eco-september/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/giles-eco-september/downloads","issues_url":"https://api.github.com/repos/diging/giles-eco-september/issues{/number}","pulls_url":"https://api.github.com/repos/diging/giles-eco-september/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/giles-eco-september/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/giles-eco-september/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/giles-eco-september/labels{/name}","releases_url":"https://api.github.com/repos/diging/giles-eco-september/releases{/id}","deployments_url":"https://api.github.com/repos/diging/giles-eco-september/deployments","created_at":"2017-03-20T23:01:24Z","updated_at":"2018-03-21T23:09:45Z","pushed_at":"2018-04-19T16:54:10Z","git_url":"git://github.com/diging/giles-eco-september.git","ssh_url":"git@github.com:diging/giles-eco-september.git","clone_url":"https://github.com/diging/giles-eco-september.git","svn_url":"https://github.com/diging/giles-eco-september","homepage":null,"size":1143,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diging/giles-eco-september/pulls/7"},"html":{"href":"https://github.com/diging/giles-eco-september/pull/7"},"issue":{"href":"https://api.github.com/repos/diging/giles-eco-september/issues/7"},"comments":{"href":"https://api.github.com/repos/diging/giles-eco-september/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/diging/giles-eco-september/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/diging/giles-eco-september/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diging/giles-eco-september/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/diging/giles-eco-september/statuses/733d9fd0630f3f9178df1d98cfa6e51f2e6dbbba"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jdamerow"}}