{"action":"created","comment":{"url":"https://api.github.com/repos/cyverse-de/apps/pulls/comments/115630076","pull_request_review_id":37185290,"id":115630076,"diff_hunk":"@@ -16,11 +17,13 @@\n                            user-get-tool]]\n         [apps.tools.private :only [add-private-tool delete-private-tool update-private-tool]]\n         [apps.user :only [current-user]]\n+        [apps.util.coercions :only [coerce!]]\n         [apps.util.service]\n         [slingshot.slingshot :only [throw+]]\n         [ring.util.http-response :only [ok]])\n   (:require [apps.routes.schemas.permission :as permission]\n             [apps.service.apps :as apps]\n+            [apps.service.apps.de.listings :as app-listings]","path":"src/apps/routes/tools.clj","position":18,"original_position":18,"commit_id":"6caf87a64699c1cb458df3cebf5b4ba0056491a1","original_commit_id":"6caf87a64699c1cb458df3cebf5b4ba0056491a1","user":{"login":"dennisroberts71","id":415143,"avatar_url":"https://avatars3.githubusercontent.com/u/415143?v=3","gravatar_id":"","url":"https://api.github.com/users/dennisroberts71","html_url":"https://github.com/dennisroberts71","followers_url":"https://api.github.com/users/dennisroberts71/followers","following_url":"https://api.github.com/users/dennisroberts71/following{/other_user}","gists_url":"https://api.github.com/users/dennisroberts71/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisroberts71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisroberts71/subscriptions","organizations_url":"https://api.github.com/users/dennisroberts71/orgs","repos_url":"https://api.github.com/users/dennisroberts71/repos","events_url":"https://api.github.com/users/dennisroberts71/events{/privacy}","received_events_url":"https://api.github.com/users/dennisroberts71/received_events","type":"User","site_admin":false},"body":"This would have to be done as part of a larger refactor, but I'd eventually like to have all app listing operations go directly through `apps.service.apps`.","created_at":"2017-05-10T00:04:45Z","updated_at":"2017-05-10T00:10:05Z","html_url":"https://github.com/cyverse-de/apps/pull/56#discussion_r115630076","pull_request_url":"https://api.github.com/repos/cyverse-de/apps/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/cyverse-de/apps/pulls/comments/115630076"},"html":{"href":"https://github.com/cyverse-de/apps/pull/56#discussion_r115630076"},"pull_request":{"href":"https://api.github.com/repos/cyverse-de/apps/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/cyverse-de/apps/pulls/56","id":119777067,"html_url":"https://github.com/cyverse-de/apps/pull/56","diff_url":"https://github.com/cyverse-de/apps/pull/56.diff","patch_url":"https://github.com/cyverse-de/apps/pull/56.patch","issue_url":"https://api.github.com/repos/cyverse-de/apps/issues/56","number":56,"state":"open","locked":false,"title":"CORE-8814 Add GET (/admin)/tools/:tool-id/apps endpoints.","user":{"login":"psarando","id":996408,"avatar_url":"https://avatars0.githubusercontent.com/u/996408?v=3","gravatar_id":"","url":"https://api.github.com/users/psarando","html_url":"https://github.com/psarando","followers_url":"https://api.github.com/users/psarando/followers","following_url":"https://api.github.com/users/psarando/following{/other_user}","gists_url":"https://api.github.com/users/psarando/gists{/gist_id}","starred_url":"https://api.github.com/users/psarando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psarando/subscriptions","organizations_url":"https://api.github.com/users/psarando/orgs","repos_url":"https://api.github.com/users/psarando/repos","events_url":"https://api.github.com/users/psarando/events{/privacy}","received_events_url":"https://api.github.com/users/psarando/received_events","type":"User","site_admin":false},"body":"Adds endpoints for listing apps using a given tool.\r\nThe non-admin endpoint also checks if the requesting user has `read` permission for the given tool.","created_at":"2017-05-09T23:46:06Z","updated_at":"2017-05-10T00:10:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e0914cacdcb7bc63674d9b83e047fb7bb47cc7c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/cyverse-de/apps/pulls/56/commits","review_comments_url":"https://api.github.com/repos/cyverse-de/apps/pulls/56/comments","review_comment_url":"https://api.github.com/repos/cyverse-de/apps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cyverse-de/apps/issues/56/comments","statuses_url":"https://api.github.com/repos/cyverse-de/apps/statuses/6caf87a64699c1cb458df3cebf5b4ba0056491a1","head":{"label":"psarando:CORE-8814","ref":"CORE-8814","sha":"6caf87a64699c1cb458df3cebf5b4ba0056491a1","user":{"login":"psarando","id":996408,"avatar_url":"https://avatars0.githubusercontent.com/u/996408?v=3","gravatar_id":"","url":"https://api.github.com/users/psarando","html_url":"https://github.com/psarando","followers_url":"https://api.github.com/users/psarando/followers","following_url":"https://api.github.com/users/psarando/following{/other_user}","gists_url":"https://api.github.com/users/psarando/gists{/gist_id}","starred_url":"https://api.github.com/users/psarando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psarando/subscriptions","organizations_url":"https://api.github.com/users/psarando/orgs","repos_url":"https://api.github.com/users/psarando/repos","events_url":"https://api.github.com/users/psarando/events{/privacy}","received_events_url":"https://api.github.com/users/psarando/received_events","type":"User","site_admin":false},"repo":{"id":67259937,"name":"cyverse-de-apps","full_name":"psarando/cyverse-de-apps","owner":{"login":"psarando","id":996408,"avatar_url":"https://avatars0.githubusercontent.com/u/996408?v=3","gravatar_id":"","url":"https://api.github.com/users/psarando","html_url":"https://github.com/psarando","followers_url":"https://api.github.com/users/psarando/followers","following_url":"https://api.github.com/users/psarando/following{/other_user}","gists_url":"https://api.github.com/users/psarando/gists{/gist_id}","starred_url":"https://api.github.com/users/psarando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psarando/subscriptions","organizations_url":"https://api.github.com/users/psarando/orgs","repos_url":"https://api.github.com/users/psarando/repos","events_url":"https://api.github.com/users/psarando/events{/privacy}","received_events_url":"https://api.github.com/users/psarando/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/psarando/cyverse-de-apps","description":null,"fork":true,"url":"https://api.github.com/repos/psarando/cyverse-de-apps","forks_url":"https://api.github.com/repos/psarando/cyverse-de-apps/forks","keys_url":"https://api.github.com/repos/psarando/cyverse-de-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psarando/cyverse-de-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psarando/cyverse-de-apps/teams","hooks_url":"https://api.github.com/repos/psarando/cyverse-de-apps/hooks","issue_events_url":"https://api.github.com/repos/psarando/cyverse-de-apps/issues/events{/number}","events_url":"https://api.github.com/repos/psarando/cyverse-de-apps/events","assignees_url":"https://api.github.com/repos/psarando/cyverse-de-apps/assignees{/user}","branches_url":"https://api.github.com/repos/psarando/cyverse-de-apps/branches{/branch}","tags_url":"https://api.github.com/repos/psarando/cyverse-de-apps/tags","blobs_url":"https://api.github.com/repos/psarando/cyverse-de-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psarando/cyverse-de-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psarando/cyverse-de-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/psarando/cyverse-de-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psarando/cyverse-de-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/psarando/cyverse-de-apps/languages","stargazers_url":"https://api.github.com/repos/psarando/cyverse-de-apps/stargazers","contributors_url":"https://api.github.com/repos/psarando/cyverse-de-apps/contributors","subscribers_url":"https://api.github.com/repos/psarando/cyverse-de-apps/subscribers","subscription_url":"https://api.github.com/repos/psarando/cyverse-de-apps/subscription","commits_url":"https://api.github.com/repos/psarando/cyverse-de-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/psarando/cyverse-de-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/psarando/cyverse-de-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/psarando/cyverse-de-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/psarando/cyverse-de-apps/contents/{+path}","compare_url":"https://api.github.com/repos/psarando/cyverse-de-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psarando/cyverse-de-apps/merges","archive_url":"https://api.github.com/repos/psarando/cyverse-de-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psarando/cyverse-de-apps/downloads","issues_url":"https://api.github.com/repos/psarando/cyverse-de-apps/issues{/number}","pulls_url":"https://api.github.com/repos/psarando/cyverse-de-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/psarando/cyverse-de-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/psarando/cyverse-de-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psarando/cyverse-de-apps/labels{/name}","releases_url":"https://api.github.com/repos/psarando/cyverse-de-apps/releases{/id}","deployments_url":"https://api.github.com/repos/psarando/cyverse-de-apps/deployments","created_at":"2016-09-02T23:00:12Z","updated_at":"2017-02-27T22:38:07Z","pushed_at":"2017-05-09T23:44:50Z","git_url":"git://github.com/psarando/cyverse-de-apps.git","ssh_url":"git@github.com:psarando/cyverse-de-apps.git","clone_url":"https://github.com/psarando/cyverse-de-apps.git","svn_url":"https://github.com/psarando/cyverse-de-apps","homepage":null,"size":1149,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cyverse-de:master","ref":"master","sha":"7ec8209436050cf79cf2a862587e2bfd2315e25b","user":{"login":"cyverse-de","id":20466326,"avatar_url":"https://avatars1.githubusercontent.com/u/20466326?v=3","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":66875408,"name":"apps","full_name":"cyverse-de/apps","owner":{"login":"cyverse-de","id":20466326,"avatar_url":"https://avatars1.githubusercontent.com/u/20466326?v=3","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/apps","description":"DE's service for managing, editing, and launching apps and analyses","fork":false,"url":"https://api.github.com/repos/cyverse-de/apps","forks_url":"https://api.github.com/repos/cyverse-de/apps/forks","keys_url":"https://api.github.com/repos/cyverse-de/apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyverse-de/apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyverse-de/apps/teams","hooks_url":"https://api.github.com/repos/cyverse-de/apps/hooks","issue_events_url":"https://api.github.com/repos/cyverse-de/apps/issues/events{/number}","events_url":"https://api.github.com/repos/cyverse-de/apps/events","assignees_url":"https://api.github.com/repos/cyverse-de/apps/assignees{/user}","branches_url":"https://api.github.com/repos/cyverse-de/apps/branches{/branch}","tags_url":"https://api.github.com/repos/cyverse-de/apps/tags","blobs_url":"https://api.github.com/repos/cyverse-de/apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyverse-de/apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyverse-de/apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyverse-de/apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyverse-de/apps/statuses/{sha}","languages_url":"https://api.github.com/repos/cyverse-de/apps/languages","stargazers_url":"https://api.github.com/repos/cyverse-de/apps/stargazers","contributors_url":"https://api.github.com/repos/cyverse-de/apps/contributors","subscribers_url":"https://api.github.com/repos/cyverse-de/apps/subscribers","subscription_url":"https://api.github.com/repos/cyverse-de/apps/subscription","commits_url":"https://api.github.com/repos/cyverse-de/apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyverse-de/apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyverse-de/apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyverse-de/apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyverse-de/apps/contents/{+path}","compare_url":"https://api.github.com/repos/cyverse-de/apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyverse-de/apps/merges","archive_url":"https://api.github.com/repos/cyverse-de/apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyverse-de/apps/downloads","issues_url":"https://api.github.com/repos/cyverse-de/apps/issues{/number}","pulls_url":"https://api.github.com/repos/cyverse-de/apps/pulls{/number}","milestones_url":"https://api.github.com/repos/cyverse-de/apps/milestones{/number}","notifications_url":"https://api.github.com/repos/cyverse-de/apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyverse-de/apps/labels{/name}","releases_url":"https://api.github.com/repos/cyverse-de/apps/releases{/id}","deployments_url":"https://api.github.com/repos/cyverse-de/apps/deployments","created_at":"2016-08-29T19:48:46Z","updated_at":"2017-02-27T16:19:47Z","pushed_at":"2017-05-09T23:46:06Z","git_url":"git://github.com/cyverse-de/apps.git","ssh_url":"git@github.com:cyverse-de/apps.git","clone_url":"https://github.com/cyverse-de/apps.git","svn_url":"https://github.com/cyverse-de/apps","homepage":"","size":1149,"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":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cyverse-de/apps/pulls/56"},"html":{"href":"https://github.com/cyverse-de/apps/pull/56"},"issue":{"href":"https://api.github.com/repos/cyverse-de/apps/issues/56"},"comments":{"href":"https://api.github.com/repos/cyverse-de/apps/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/cyverse-de/apps/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/cyverse-de/apps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cyverse-de/apps/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/cyverse-de/apps/statuses/6caf87a64699c1cb458df3cebf5b4ba0056491a1"}}}}
{"actor":{"display_login":"dennisroberts71"}}