{"action":"created","comment":{"url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/comments/176167238","pull_request_review_id":105823467,"id":176167238,"diff_hunk":"@@ -565,6 +565,14 @@\n                 AND c.parent_coll_name = ANY(ARRAY( SELECT coll_name FROM parent ))\n                 AND c.coll_type != 'linkPoint')) AS total\"\n \n+   :list-files-under-folder\n+   \"SELECT c.coll_name || '/' || d.data_name AS path\n+      FROM r_coll_main c\n+      JOIN r_data_main d ON c.coll_id = d.coll_id\n+     WHERE c.coll_name = ?\n+        OR c.coll_name LIKE ? || '/%'\n+  ORDER BY c.coll_name, d.data_name\"","path":"src/clj_icat_direct/queries.clj","position":10,"original_position":10,"commit_id":"7cd3d3b581a84c223fa9a29e4490369e7b1a0092","original_commit_id":"7cd3d3b581a84c223fa9a29e4490369e7b1a0092","user":{"login":"ianmcorvidae","id":106004,"avatar_url":"https://avatars2.githubusercontent.com/u/106004?v=4","gravatar_id":"","url":"https://api.github.com/users/ianmcorvidae","html_url":"https://github.com/ianmcorvidae","followers_url":"https://api.github.com/users/ianmcorvidae/followers","following_url":"https://api.github.com/users/ianmcorvidae/following{/other_user}","gists_url":"https://api.github.com/users/ianmcorvidae/gists{/gist_id}","starred_url":"https://api.github.com/users/ianmcorvidae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianmcorvidae/subscriptions","organizations_url":"https://api.github.com/users/ianmcorvidae/orgs","repos_url":"https://api.github.com/users/ianmcorvidae/repos","events_url":"https://api.github.com/users/ianmcorvidae/events{/privacy}","received_events_url":"https://api.github.com/users/ianmcorvidae/received_events","type":"User","site_admin":false},"body":"I suppose, thinking about it more, that a plain old `DISTINCT` (or throwing out non-unique values higher up, but probably better to do it in the DB) might also work too.","created_at":"2018-03-21T17:19:03Z","updated_at":"2018-03-21T17:19:03Z","html_url":"https://github.com/cyverse-de/clj-icat-direct/pull/1#discussion_r176167238","pull_request_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/1","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/comments/176167238"},"html":{"href":"https://github.com/cyverse-de/clj-icat-direct/pull/1#discussion_r176167238"},"pull_request":{"href":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/1"}},"in_reply_to_id":176166509},"pull_request":{"url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/1","id":176368728,"html_url":"https://github.com/cyverse-de/clj-icat-direct/pull/1","diff_url":"https://github.com/cyverse-de/clj-icat-direct/pull/1.diff","patch_url":"https://github.com/cyverse-de/clj-icat-direct/pull/1.patch","issue_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/issues/1","number":1,"state":"open","locked":false,"title":"CORE-9176: create a function for listing all files underneath a folder","user":{"login":"slr71","id":415143,"avatar_url":"https://avatars0.githubusercontent.com/u/415143?v=4","gravatar_id":"","url":"https://api.github.com/users/slr71","html_url":"https://github.com/slr71","followers_url":"https://api.github.com/users/slr71/followers","following_url":"https://api.github.com/users/slr71/following{/other_user}","gists_url":"https://api.github.com/users/slr71/gists{/gist_id}","starred_url":"https://api.github.com/users/slr71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slr71/subscriptions","organizations_url":"https://api.github.com/users/slr71/orgs","repos_url":"https://api.github.com/users/slr71/repos","events_url":"https://api.github.com/users/slr71/events{/privacy}","received_events_url":"https://api.github.com/users/slr71/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-21T02:17:56Z","updated_at":"2018-03-21T17:19:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22c79664c1d874e217fea2460568bf696e543cbf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/1/commits","review_comments_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/1/comments","review_comment_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/issues/1/comments","statuses_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/statuses/7cd3d3b581a84c223fa9a29e4490369e7b1a0092","head":{"label":"slr71:master","ref":"master","sha":"7cd3d3b581a84c223fa9a29e4490369e7b1a0092","user":{"login":"slr71","id":415143,"avatar_url":"https://avatars0.githubusercontent.com/u/415143?v=4","gravatar_id":"","url":"https://api.github.com/users/slr71","html_url":"https://github.com/slr71","followers_url":"https://api.github.com/users/slr71/followers","following_url":"https://api.github.com/users/slr71/following{/other_user}","gists_url":"https://api.github.com/users/slr71/gists{/gist_id}","starred_url":"https://api.github.com/users/slr71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slr71/subscriptions","organizations_url":"https://api.github.com/users/slr71/orgs","repos_url":"https://api.github.com/users/slr71/repos","events_url":"https://api.github.com/users/slr71/events{/privacy}","received_events_url":"https://api.github.com/users/slr71/received_events","type":"User","site_admin":false},"repo":{"id":73759848,"name":"clj-icat-direct","full_name":"slr71/clj-icat-direct","owner":{"login":"slr71","id":415143,"avatar_url":"https://avatars0.githubusercontent.com/u/415143?v=4","gravatar_id":"","url":"https://api.github.com/users/slr71","html_url":"https://github.com/slr71","followers_url":"https://api.github.com/users/slr71/followers","following_url":"https://api.github.com/users/slr71/following{/other_user}","gists_url":"https://api.github.com/users/slr71/gists{/gist_id}","starred_url":"https://api.github.com/users/slr71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slr71/subscriptions","organizations_url":"https://api.github.com/users/slr71/orgs","repos_url":"https://api.github.com/users/slr71/repos","events_url":"https://api.github.com/users/slr71/events{/privacy}","received_events_url":"https://api.github.com/users/slr71/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slr71/clj-icat-direct","description":null,"fork":true,"url":"https://api.github.com/repos/slr71/clj-icat-direct","forks_url":"https://api.github.com/repos/slr71/clj-icat-direct/forks","keys_url":"https://api.github.com/repos/slr71/clj-icat-direct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slr71/clj-icat-direct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slr71/clj-icat-direct/teams","hooks_url":"https://api.github.com/repos/slr71/clj-icat-direct/hooks","issue_events_url":"https://api.github.com/repos/slr71/clj-icat-direct/issues/events{/number}","events_url":"https://api.github.com/repos/slr71/clj-icat-direct/events","assignees_url":"https://api.github.com/repos/slr71/clj-icat-direct/assignees{/user}","branches_url":"https://api.github.com/repos/slr71/clj-icat-direct/branches{/branch}","tags_url":"https://api.github.com/repos/slr71/clj-icat-direct/tags","blobs_url":"https://api.github.com/repos/slr71/clj-icat-direct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slr71/clj-icat-direct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slr71/clj-icat-direct/git/refs{/sha}","trees_url":"https://api.github.com/repos/slr71/clj-icat-direct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slr71/clj-icat-direct/statuses/{sha}","languages_url":"https://api.github.com/repos/slr71/clj-icat-direct/languages","stargazers_url":"https://api.github.com/repos/slr71/clj-icat-direct/stargazers","contributors_url":"https://api.github.com/repos/slr71/clj-icat-direct/contributors","subscribers_url":"https://api.github.com/repos/slr71/clj-icat-direct/subscribers","subscription_url":"https://api.github.com/repos/slr71/clj-icat-direct/subscription","commits_url":"https://api.github.com/repos/slr71/clj-icat-direct/commits{/sha}","git_commits_url":"https://api.github.com/repos/slr71/clj-icat-direct/git/commits{/sha}","comments_url":"https://api.github.com/repos/slr71/clj-icat-direct/comments{/number}","issue_comment_url":"https://api.github.com/repos/slr71/clj-icat-direct/issues/comments{/number}","contents_url":"https://api.github.com/repos/slr71/clj-icat-direct/contents/{+path}","compare_url":"https://api.github.com/repos/slr71/clj-icat-direct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slr71/clj-icat-direct/merges","archive_url":"https://api.github.com/repos/slr71/clj-icat-direct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slr71/clj-icat-direct/downloads","issues_url":"https://api.github.com/repos/slr71/clj-icat-direct/issues{/number}","pulls_url":"https://api.github.com/repos/slr71/clj-icat-direct/pulls{/number}","milestones_url":"https://api.github.com/repos/slr71/clj-icat-direct/milestones{/number}","notifications_url":"https://api.github.com/repos/slr71/clj-icat-direct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slr71/clj-icat-direct/labels{/name}","releases_url":"https://api.github.com/repos/slr71/clj-icat-direct/releases{/id}","deployments_url":"https://api.github.com/repos/slr71/clj-icat-direct/deployments","created_at":"2016-11-15T00:30:11Z","updated_at":"2018-03-21T02:16:44Z","pushed_at":"2018-03-21T02:16:43Z","git_url":"git://github.com/slr71/clj-icat-direct.git","ssh_url":"git@github.com:slr71/clj-icat-direct.git","clone_url":"https://github.com/slr71/clj-icat-direct.git","svn_url":"https://github.com/slr71/clj-icat-direct","homepage":null,"size":75,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":false,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cyverse-de:master","ref":"master","sha":"dc959a53e3a3e3956b68f5a3f034e20d0a7db020","user":{"login":"cyverse-de","id":20466326,"avatar_url":"https://avatars2.githubusercontent.com/u/20466326?v=4","gravatar_id":"","url":"https://api.github.com/users/cyverse-de","html_url":"https://github.com/cyverse-de","followers_url":"https://api.github.com/users/cyverse-de/followers","following_url":"https://api.github.com/users/cyverse-de/following{/other_user}","gists_url":"https://api.github.com/users/cyverse-de/gists{/gist_id}","starred_url":"https://api.github.com/users/cyverse-de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyverse-de/subscriptions","organizations_url":"https://api.github.com/users/cyverse-de/orgs","repos_url":"https://api.github.com/users/cyverse-de/repos","events_url":"https://api.github.com/users/cyverse-de/events{/privacy}","received_events_url":"https://api.github.com/users/cyverse-de/received_events","type":"Organization","site_admin":false},"repo":{"id":66873978,"name":"clj-icat-direct","full_name":"cyverse-de/clj-icat-direct","owner":{"login":"cyverse-de","id":20466326,"avatar_url":"https://avatars2.githubusercontent.com/u/20466326?v=4","gravatar_id":"","url":"https://api.github.com/users/cyverse-de","html_url":"https://github.com/cyverse-de","followers_url":"https://api.github.com/users/cyverse-de/followers","following_url":"https://api.github.com/users/cyverse-de/following{/other_user}","gists_url":"https://api.github.com/users/cyverse-de/gists{/gist_id}","starred_url":"https://api.github.com/users/cyverse-de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyverse-de/subscriptions","organizations_url":"https://api.github.com/users/cyverse-de/orgs","repos_url":"https://api.github.com/users/cyverse-de/repos","events_url":"https://api.github.com/users/cyverse-de/events{/privacy}","received_events_url":"https://api.github.com/users/cyverse-de/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cyverse-de/clj-icat-direct","description":null,"fork":false,"url":"https://api.github.com/repos/cyverse-de/clj-icat-direct","forks_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/forks","keys_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/teams","hooks_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/hooks","issue_events_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/issues/events{/number}","events_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/events","assignees_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/assignees{/user}","branches_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/branches{/branch}","tags_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/tags","blobs_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/statuses/{sha}","languages_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/languages","stargazers_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/stargazers","contributors_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/contributors","subscribers_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/subscribers","subscription_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/subscription","commits_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/contents/{+path}","compare_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/merges","archive_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/downloads","issues_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/issues{/number}","pulls_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls{/number}","milestones_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/milestones{/number}","notifications_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/labels{/name}","releases_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/releases{/id}","deployments_url":"https://api.github.com/repos/cyverse-de/clj-icat-direct/deployments","created_at":"2016-08-29T19:27:18Z","updated_at":"2016-08-29T19:59:42Z","pushed_at":"2018-03-21T02:17:56Z","git_url":"git://github.com/cyverse-de/clj-icat-direct.git","ssh_url":"git@github.com:cyverse-de/clj-icat-direct.git","clone_url":"https://github.com/cyverse-de/clj-icat-direct.git","svn_url":"https://github.com/cyverse-de/clj-icat-direct","homepage":null,"size":75,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/1"},"html":{"href":"https://github.com/cyverse-de/clj-icat-direct/pull/1"},"issue":{"href":"https://api.github.com/repos/cyverse-de/clj-icat-direct/issues/1"},"comments":{"href":"https://api.github.com/repos/cyverse-de/clj-icat-direct/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cyverse-de/clj-icat-direct/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/cyverse-de/clj-icat-direct/statuses/7cd3d3b581a84c223fa9a29e4490369e7b1a0092"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ianmcorvidae"}}