[ARVADOS] created: 9af38cb64adfb7b92cb57df29e9ba267b4a67257
git at public.curoverse.com
git at public.curoverse.com
Tue Apr 29 15:45:24 EDT 2014
at 9af38cb64adfb7b92cb57df29e9ba267b4a67257 (commit)
commit 9af38cb64adfb7b92cb57df29e9ba267b4a67257
Author: Ward Vandewege <ward at curoverse.com>
Date: Tue Apr 29 15:41:29 2014 -0400
List repository owners and their ssh keys in the response of the
get_all_permissions API call.
diff --git a/services/api/app/controllers/arvados/v1/repositories_controller.rb b/services/api/app/controllers/arvados/v1/repositories_controller.rb
index 390aa73..e93dcc0 100644
--- a/services/api/app/controllers/arvados/v1/repositories_controller.rb
+++ b/services/api/app/controllers/arvados/v1/repositories_controller.rb
@@ -27,6 +27,14 @@ class Arvados::V1::RepositoriesController < ApplicationController
else
perms << {name: perm.name, user_uuid: perm.tail_uuid}
end
+ owner_uuid = perm[:owner_uuid]
+ @user_aks[owner_uuid] = @users[owner_uuid].andand.authorized_keys.andand.
+ collect do |ak|
+ {
+ public_key: ak.public_key,
+ authorized_key_uuid: ak.uuid
+ }
+ end || []
end
perms.each do |perm|
user_uuid = perm[:user_uuid]
@@ -41,6 +49,7 @@ class Arvados::V1::RepositoriesController < ApplicationController
@repo_info[repo.uuid] ||= {
uuid: repo.uuid,
name: repo.name,
+ owner_uuid: repo.owner_uuid,
push_url: repo.push_url,
fetch_url: repo.fetch_url,
user_permissions: {}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list