{"action":"created","comment":{"url":"https://api.github.com/repos/akvo/akvo-flow/pulls/comments/80202464","id":80202464,"diff_hunk":"@@ -0,0 +1,82 @@\n+/*\n+ *  Copyright (C) 2016 Stichting Akvo (Akvo Foundation)\n+ *\n+ *  This file is part of Akvo FLOW.\n+ *\n+ *  Akvo FLOW is free software: you can redistribute it and modify it under the terms of\n+ *  the GNU Affero General Public License (AGPL) as published by the Free Software Foundation,\n+ *  either version 3 of the License or any later version.\n+ *\n+ *  Akvo FLOW is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n+ *  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n+ *  See the GNU Affero General Public License included below for more details.\n+ *\n+ *  The full license text can also be seen at <http://www.gnu.org/licenses/agpl.html>.\n+ */\n+\n+package com.gallatinsystems.survey.dao;\n+\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.logging.Level;\n+import java.util.logging.Logger;\n+\n+import org.apache.commons.io.IOUtils;\n+import org.codehaus.jackson.JsonNode;\n+import org.codehaus.jackson.map.ObjectMapper;\n+import org.codehaus.jackson.node.ArrayNode;\n+import org.waterforpeople.mapping.domain.CaddisflyResource;\n+\n+/**\n+ * Dao for listing Caddisfly resources Note: this class doesn't need to\n+ * implement baseDAO as it consists of only a single method.\n+ */\n+public class CaddisflyResourceDao {\n+\tprivate static ObjectMapper mapper = new ObjectMapper();\n+\n+\tprivate static final Logger log = Logger.getLogger(CascadeResourceDao.class\n+\t\t\t.getName());\n+\n+\t/**\n+\t * lists caddisfly resources. Source is the json file caddisfly-tests.json\n+\t * stored in WEB-INF/resources\n+\t * \n+\t * @param item","path":"GAE/src/com/gallatinsystems/survey/dao/CaddisflyResourceDao.java","position":46,"original_position":46,"commit_id":"c7215e8ccb4c6d39c672b996e6083c806cf23d23","original_commit_id":"c7215e8ccb4c6d39c672b996e6083c806cf23d23","user":{"login":"mtwestra","id":478954,"avatar_url":"https://avatars.githubusercontent.com/u/478954?v=3","gravatar_id":"","url":"https://api.github.com/users/mtwestra","html_url":"https://github.com/mtwestra","followers_url":"https://api.github.com/users/mtwestra/followers","following_url":"https://api.github.com/users/mtwestra/following{/other_user}","gists_url":"https://api.github.com/users/mtwestra/gists{/gist_id}","starred_url":"https://api.github.com/users/mtwestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtwestra/subscriptions","organizations_url":"https://api.github.com/users/mtwestra/orgs","repos_url":"https://api.github.com/users/mtwestra/repos","events_url":"https://api.github.com/users/mtwestra/events{/privacy}","received_events_url":"https://api.github.com/users/mtwestra/received_events","type":"User","site_admin":false},"body":"done","created_at":"2016-09-23T08:35:32Z","updated_at":"2016-09-23T08:35:32Z","html_url":"https://github.com/akvo/akvo-flow/pull/1723#discussion_r80202464","pull_request_url":"https://api.github.com/repos/akvo/akvo-flow/pulls/1723","_links":{"self":{"href":"https://api.github.com/repos/akvo/akvo-flow/pulls/comments/80202464"},"html":{"href":"https://github.com/akvo/akvo-flow/pull/1723#discussion_r80202464"},"pull_request":{"href":"https://api.github.com/repos/akvo/akvo-flow/pulls/1723"}}},"pull_request":{"url":"https://api.github.com/repos/akvo/akvo-flow/pulls/1723","id":75475264,"html_url":"https://github.com/akvo/akvo-flow/pull/1723","diff_url":"https://github.com/akvo/akvo-flow/pull/1723.diff","patch_url":"https://github.com/akvo/akvo-flow/pull/1723.patch","issue_url":"https://api.github.com/repos/akvo/akvo-flow/issues/1723","number":1723,"state":"open","locked":false,"title":"Feature/1577 caddisfly question","user":{"login":"mtwestra","id":478954,"avatar_url":"https://avatars.githubusercontent.com/u/478954?v=3","gravatar_id":"","url":"https://api.github.com/users/mtwestra","html_url":"https://github.com/mtwestra","followers_url":"https://api.github.com/users/mtwestra/followers","following_url":"https://api.github.com/users/mtwestra/following{/other_user}","gists_url":"https://api.github.com/users/mtwestra/gists{/gist_id}","starred_url":"https://api.github.com/users/mtwestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtwestra/subscriptions","organizations_url":"https://api.github.com/users/mtwestra/orgs","repos_url":"https://api.github.com/users/mtwestra/repos","events_url":"https://api.github.com/users/mtwestra/events{/privacy}","received_events_url":"https://api.github.com/users/mtwestra/received_events","type":"User","site_admin":false},"body":"Pull request for caddisfly integration.","created_at":"2016-06-28T13:17:55Z","updated_at":"2016-09-23T08:35:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f55a68d9498e7ce83b3cb84258dffe8e6163846","assignee":{"login":"iperdomo","id":178474,"avatar_url":"https://avatars.githubusercontent.com/u/178474?v=3","gravatar_id":"","url":"https://api.github.com/users/iperdomo","html_url":"https://github.com/iperdomo","followers_url":"https://api.github.com/users/iperdomo/followers","following_url":"https://api.github.com/users/iperdomo/following{/other_user}","gists_url":"https://api.github.com/users/iperdomo/gists{/gist_id}","starred_url":"https://api.github.com/users/iperdomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iperdomo/subscriptions","organizations_url":"https://api.github.com/users/iperdomo/orgs","repos_url":"https://api.github.com/users/iperdomo/repos","events_url":"https://api.github.com/users/iperdomo/events{/privacy}","received_events_url":"https://api.github.com/users/iperdomo/received_events","type":"User","site_admin":false},"assignees":[{"login":"iperdomo","id":178474,"avatar_url":"https://avatars.githubusercontent.com/u/178474?v=3","gravatar_id":"","url":"https://api.github.com/users/iperdomo","html_url":"https://github.com/iperdomo","followers_url":"https://api.github.com/users/iperdomo/followers","following_url":"https://api.github.com/users/iperdomo/following{/other_user}","gists_url":"https://api.github.com/users/iperdomo/gists{/gist_id}","starred_url":"https://api.github.com/users/iperdomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iperdomo/subscriptions","organizations_url":"https://api.github.com/users/iperdomo/orgs","repos_url":"https://api.github.com/users/iperdomo/repos","events_url":"https://api.github.com/users/iperdomo/events{/privacy}","received_events_url":"https://api.github.com/users/iperdomo/received_events","type":"User","site_admin":false},{"login":"stellanl","id":399534,"avatar_url":"https://avatars.githubusercontent.com/u/399534?v=3","gravatar_id":"","url":"https://api.github.com/users/stellanl","html_url":"https://github.com/stellanl","followers_url":"https://api.github.com/users/stellanl/followers","following_url":"https://api.github.com/users/stellanl/following{/other_user}","gists_url":"https://api.github.com/users/stellanl/gists{/gist_id}","starred_url":"https://api.github.com/users/stellanl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stellanl/subscriptions","organizations_url":"https://api.github.com/users/stellanl/orgs","repos_url":"https://api.github.com/users/stellanl/repos","events_url":"https://api.github.com/users/stellanl/events{/privacy}","received_events_url":"https://api.github.com/users/stellanl/received_events","type":"User","site_admin":false},{"login":"muloem","id":533336,"avatar_url":"https://avatars.githubusercontent.com/u/533336?v=3","gravatar_id":"","url":"https://api.github.com/users/muloem","html_url":"https://github.com/muloem","followers_url":"https://api.github.com/users/muloem/followers","following_url":"https://api.github.com/users/muloem/following{/other_user}","gists_url":"https://api.github.com/users/muloem/gists{/gist_id}","starred_url":"https://api.github.com/users/muloem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muloem/subscriptions","organizations_url":"https://api.github.com/users/muloem/orgs","repos_url":"https://api.github.com/users/muloem/repos","events_url":"https://api.github.com/users/muloem/events{/privacy}","received_events_url":"https://api.github.com/users/muloem/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/akvo/akvo-flow/pulls/1723/commits","review_comments_url":"https://api.github.com/repos/akvo/akvo-flow/pulls/1723/comments","review_comment_url":"https://api.github.com/repos/akvo/akvo-flow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akvo/akvo-flow/issues/1723/comments","statuses_url":"https://api.github.com/repos/akvo/akvo-flow/statuses/c7215e8ccb4c6d39c672b996e6083c806cf23d23","head":{"label":"akvo:feature/1577-caddisfly-question","ref":"feature/1577-caddisfly-question","sha":"c7215e8ccb4c6d39c672b996e6083c806cf23d23","user":{"login":"akvo","id":159843,"avatar_url":"https://avatars.githubusercontent.com/u/159843?v=3","gravatar_id":"","url":"https://api.github.com/users/akvo","html_url":"https://github.com/akvo","followers_url":"https://api.github.com/users/akvo/followers","following_url":"https://api.github.com/users/akvo/following{/other_user}","gists_url":"https://api.github.com/users/akvo/gists{/gist_id}","starred_url":"https://api.github.com/users/akvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akvo/subscriptions","organizations_url":"https://api.github.com/users/akvo/orgs","repos_url":"https://api.github.com/users/akvo/repos","events_url":"https://api.github.com/users/akvo/events{/privacy}","received_events_url":"https://api.github.com/users/akvo/received_events","type":"Organization","site_admin":false},"repo":{"id":3843585,"name":"akvo-flow","full_name":"akvo/akvo-flow","owner":{"login":"akvo","id":159843,"avatar_url":"https://avatars.githubusercontent.com/u/159843?v=3","gravatar_id":"","url":"https://api.github.com/users/akvo","html_url":"https://github.com/akvo","followers_url":"https://api.github.com/users/akvo/followers","following_url":"https://api.github.com/users/akvo/following{/other_user}","gists_url":"https://api.github.com/users/akvo/gists{/gist_id}","starred_url":"https://api.github.com/users/akvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akvo/subscriptions","organizations_url":"https://api.github.com/users/akvo/orgs","repos_url":"https://api.github.com/users/akvo/repos","events_url":"https://api.github.com/users/akvo/events{/privacy}","received_events_url":"https://api.github.com/users/akvo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akvo/akvo-flow","description":"Akvo Flow","fork":false,"url":"https://api.github.com/repos/akvo/akvo-flow","forks_url":"https://api.github.com/repos/akvo/akvo-flow/forks","keys_url":"https://api.github.com/repos/akvo/akvo-flow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akvo/akvo-flow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akvo/akvo-flow/teams","hooks_url":"https://api.github.com/repos/akvo/akvo-flow/hooks","issue_events_url":"https://api.github.com/repos/akvo/akvo-flow/issues/events{/number}","events_url":"https://api.github.com/repos/akvo/akvo-flow/events","assignees_url":"https://api.github.com/repos/akvo/akvo-flow/assignees{/user}","branches_url":"https://api.github.com/repos/akvo/akvo-flow/branches{/branch}","tags_url":"https://api.github.com/repos/akvo/akvo-flow/tags","blobs_url":"https://api.github.com/repos/akvo/akvo-flow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akvo/akvo-flow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akvo/akvo-flow/git/refs{/sha}","trees_url":"https://api.github.com/repos/akvo/akvo-flow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akvo/akvo-flow/statuses/{sha}","languages_url":"https://api.github.com/repos/akvo/akvo-flow/languages","stargazers_url":"https://api.github.com/repos/akvo/akvo-flow/stargazers","contributors_url":"https://api.github.com/repos/akvo/akvo-flow/contributors","subscribers_url":"https://api.github.com/repos/akvo/akvo-flow/subscribers","subscription_url":"https://api.github.com/repos/akvo/akvo-flow/subscription","commits_url":"https://api.github.com/repos/akvo/akvo-flow/commits{/sha}","git_commits_url":"https://api.github.com/repos/akvo/akvo-flow/git/commits{/sha}","comments_url":"https://api.github.com/repos/akvo/akvo-flow/comments{/number}","issue_comment_url":"https://api.github.com/repos/akvo/akvo-flow/issues/comments{/number}","contents_url":"https://api.github.com/repos/akvo/akvo-flow/contents/{+path}","compare_url":"https://api.github.com/repos/akvo/akvo-flow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akvo/akvo-flow/merges","archive_url":"https://api.github.com/repos/akvo/akvo-flow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akvo/akvo-flow/downloads","issues_url":"https://api.github.com/repos/akvo/akvo-flow/issues{/number}","pulls_url":"https://api.github.com/repos/akvo/akvo-flow/pulls{/number}","milestones_url":"https://api.github.com/repos/akvo/akvo-flow/milestones{/number}","notifications_url":"https://api.github.com/repos/akvo/akvo-flow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akvo/akvo-flow/labels{/name}","releases_url":"https://api.github.com/repos/akvo/akvo-flow/releases{/id}","deployments_url":"https://api.github.com/repos/akvo/akvo-flow/deployments","created_at":"2012-03-27T12:45:18Z","updated_at":"2016-09-15T07:54:16Z","pushed_at":"2016-09-23T08:05:22Z","git_url":"git://github.com/akvo/akvo-flow.git","ssh_url":"git@github.com:akvo/akvo-flow.git","clone_url":"https://github.com/akvo/akvo-flow.git","svn_url":"https://github.com/akvo/akvo-flow","homepage":"http://akvo.org/products/akvoflow/","size":214899,"stargazers_count":32,"watchers_count":32,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":208,"forks":16,"open_issues":208,"watchers":32,"default_branch":"develop"}},"base":{"label":"akvo:develop","ref":"develop","sha":"3733ef3bfd4802a054043e00d8d4047ce3318fba","user":{"login":"akvo","id":159843,"avatar_url":"https://avatars.githubusercontent.com/u/159843?v=3","gravatar_id":"","url":"https://api.github.com/users/akvo","html_url":"https://github.com/akvo","followers_url":"https://api.github.com/users/akvo/followers","following_url":"https://api.github.com/users/akvo/following{/other_user}","gists_url":"https://api.github.com/users/akvo/gists{/gist_id}","starred_url":"https://api.github.com/users/akvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akvo/subscriptions","organizations_url":"https://api.github.com/users/akvo/orgs","repos_url":"https://api.github.com/users/akvo/repos","events_url":"https://api.github.com/users/akvo/events{/privacy}","received_events_url":"https://api.github.com/users/akvo/received_events","type":"Organization","site_admin":false},"repo":{"id":3843585,"name":"akvo-flow","full_name":"akvo/akvo-flow","owner":{"login":"akvo","id":159843,"avatar_url":"https://avatars.githubusercontent.com/u/159843?v=3","gravatar_id":"","url":"https://api.github.com/users/akvo","html_url":"https://github.com/akvo","followers_url":"https://api.github.com/users/akvo/followers","following_url":"https://api.github.com/users/akvo/following{/other_user}","gists_url":"https://api.github.com/users/akvo/gists{/gist_id}","starred_url":"https://api.github.com/users/akvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akvo/subscriptions","organizations_url":"https://api.github.com/users/akvo/orgs","repos_url":"https://api.github.com/users/akvo/repos","events_url":"https://api.github.com/users/akvo/events{/privacy}","received_events_url":"https://api.github.com/users/akvo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akvo/akvo-flow","description":"Akvo Flow","fork":false,"url":"https://api.github.com/repos/akvo/akvo-flow","forks_url":"https://api.github.com/repos/akvo/akvo-flow/forks","keys_url":"https://api.github.com/repos/akvo/akvo-flow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akvo/akvo-flow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akvo/akvo-flow/teams","hooks_url":"https://api.github.com/repos/akvo/akvo-flow/hooks","issue_events_url":"https://api.github.com/repos/akvo/akvo-flow/issues/events{/number}","events_url":"https://api.github.com/repos/akvo/akvo-flow/events","assignees_url":"https://api.github.com/repos/akvo/akvo-flow/assignees{/user}","branches_url":"https://api.github.com/repos/akvo/akvo-flow/branches{/branch}","tags_url":"https://api.github.com/repos/akvo/akvo-flow/tags","blobs_url":"https://api.github.com/repos/akvo/akvo-flow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akvo/akvo-flow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akvo/akvo-flow/git/refs{/sha}","trees_url":"https://api.github.com/repos/akvo/akvo-flow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akvo/akvo-flow/statuses/{sha}","languages_url":"https://api.github.com/repos/akvo/akvo-flow/languages","stargazers_url":"https://api.github.com/repos/akvo/akvo-flow/stargazers","contributors_url":"https://api.github.com/repos/akvo/akvo-flow/contributors","subscribers_url":"https://api.github.com/repos/akvo/akvo-flow/subscribers","subscription_url":"https://api.github.com/repos/akvo/akvo-flow/subscription","commits_url":"https://api.github.com/repos/akvo/akvo-flow/commits{/sha}","git_commits_url":"https://api.github.com/repos/akvo/akvo-flow/git/commits{/sha}","comments_url":"https://api.github.com/repos/akvo/akvo-flow/comments{/number}","issue_comment_url":"https://api.github.com/repos/akvo/akvo-flow/issues/comments{/number}","contents_url":"https://api.github.com/repos/akvo/akvo-flow/contents/{+path}","compare_url":"https://api.github.com/repos/akvo/akvo-flow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akvo/akvo-flow/merges","archive_url":"https://api.github.com/repos/akvo/akvo-flow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akvo/akvo-flow/downloads","issues_url":"https://api.github.com/repos/akvo/akvo-flow/issues{/number}","pulls_url":"https://api.github.com/repos/akvo/akvo-flow/pulls{/number}","milestones_url":"https://api.github.com/repos/akvo/akvo-flow/milestones{/number}","notifications_url":"https://api.github.com/repos/akvo/akvo-flow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akvo/akvo-flow/labels{/name}","releases_url":"https://api.github.com/repos/akvo/akvo-flow/releases{/id}","deployments_url":"https://api.github.com/repos/akvo/akvo-flow/deployments","created_at":"2012-03-27T12:45:18Z","updated_at":"2016-09-15T07:54:16Z","pushed_at":"2016-09-23T08:05:22Z","git_url":"git://github.com/akvo/akvo-flow.git","ssh_url":"git@github.com:akvo/akvo-flow.git","clone_url":"https://github.com/akvo/akvo-flow.git","svn_url":"https://github.com/akvo/akvo-flow","homepage":"http://akvo.org/products/akvoflow/","size":214899,"stargazers_count":32,"watchers_count":32,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":208,"forks":16,"open_issues":208,"watchers":32,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/akvo/akvo-flow/pulls/1723"},"html":{"href":"https://github.com/akvo/akvo-flow/pull/1723"},"issue":{"href":"https://api.github.com/repos/akvo/akvo-flow/issues/1723"},"comments":{"href":"https://api.github.com/repos/akvo/akvo-flow/issues/1723/comments"},"review_comments":{"href":"https://api.github.com/repos/akvo/akvo-flow/pulls/1723/comments"},"review_comment":{"href":"https://api.github.com/repos/akvo/akvo-flow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akvo/akvo-flow/pulls/1723/commits"},"statuses":{"href":"https://api.github.com/repos/akvo/akvo-flow/statuses/c7215e8ccb4c6d39c672b996e6083c806cf23d23"}}}}
{"actor":{"display_login":"mtwestra"}}