[ARVADOS] updated: 48f4c496e659bc28446bfd5aa2d469d5316d49cb

Git user git at public.curoverse.com
Mon Jun 19 16:05:04 EDT 2017


Summary of changes:
 .licenseignore                                     |  46 +++++
 apps/workbench/app/controllers/users_controller.rb |  20 +-
 build/check-copyright-notices                      | 201 +++++++++++++++++++++
 build/{libcloud-pin => libcloud-pin.sh}            |   0
 build/run-build-packages-python-and-ruby.sh        |   2 +-
 build/run-build-packages.sh                        |   2 +-
 build/run-tests.sh                                 |   2 +-
 doc/start/index.html.textile.liquid.bkup           |  50 -----
 sdk/cwl/arvados_cwl/__init__.py                    |   3 +-
 sdk/cwl/arvados_cwl/arvjob.py                      |   9 +
 sdk/cwl/arvados_cwl/done.py                        |  62 ++++---
 sdk/cwl/test_with_arvbox.sh                        |  18 +-
 sdk/cwl/tests/test_job.py                          |  68 ++++++-
 .../arvados/v1/repositories_controller.rb          |  17 +-
 .../app/controllers/arvados/v1/users_controller.rb |  12 +-
 services/api/app/models/node.rb                    |  29 ++-
 services/api/app/models/user.rb                    |  66 ++++---
 services/api/lib/can_be_an_owner.rb                |  42 +++--
 .../functional/arvados/v1/users_controller_test.rb |  18 ++
 services/api/test/unit/node_test.rb                |  21 ++-
 services/api/test/unit/user_test.rb                |  17 +-
 services/keep-web/cache.go                         |   1 -
 services/keep-web/cache_test.go                    |   4 +-
 tools/arvbox/bin/arvbox                            |   2 +-
 tools/arvbox/lib/arvbox/docker/Dockerfile.base     |   3 +-
 25 files changed, 520 insertions(+), 195 deletions(-)
 create mode 100644 .licenseignore
 create mode 100755 build/check-copyright-notices
 rename build/{libcloud-pin => libcloud-pin.sh} (100%)
 delete mode 100644 doc/start/index.html.textile.liquid.bkup

       via  48f4c496e659bc28446bfd5aa2d469d5316d49cb (commit)
       via  e7672a0b679659d6ba90d23b4e102fba747fa9ef (commit)
       via  4db4e97167a25b519581fb5f4ebef2169464333e (commit)
       via  04f9ccc7ca627d41175f44f515e4581b6937f43b (commit)
       via  110b7d2f628aa9b60fc2beecb66ead15cc60660f (commit)
       via  e2a4e065951ea459570ae75dbe2ed4fd4b6d4bd8 (commit)
       via  b89fda1904ec63d637c43831df66b334f6a78377 (commit)
       via  7409b2f682d562cd7ef7bcf558597ae2181ea7c1 (commit)
       via  b7f7d35140e9b412b835817d4f8a078271af4fc0 (commit)
       via  51920838d495265bddb71e61dbd8122b1fe0cb6e (commit)
       via  405d6345dcbe1494e2a9202bcb5cdf519e7d3e0a (commit)
       via  021d36f17fe0329e869324d3764eaaf15c3a0771 (commit)
       via  82de7379de9a488a1e5ace7bb854a4c271c466a8 (commit)
       via  050be6a5be43ab503820955dbca2751ca368063c (commit)
       via  eb0012d203974e54023dfcac6e04fd4c2c40270f (commit)
       via  156f7186528045a58628c58f3b4b48fcb3825cd5 (commit)
       via  0bd8810e6ea29ab242472b9dae11c621cf50953c (commit)
       via  3c44c82acb3dbf50acd75f0c979d8a18ee11dbd0 (commit)
       via  2b62223c9ba420208b9f293825e7f6ae3f50f95b (commit)
       via  28cf4975bf3a72ff11ab4044a54b434857b1b95e (commit)
       via  803d4fd3eff1d5c0d4cb9793fb06e1117039beae (commit)
       via  2796844aee26155b5c78e7c69830652f51f7342e (commit)
       via  ec7510c680ee2065d6372fef6a340ef754dbe724 (commit)
       via  9ae2b6b3427f131fc61f574a2061111c9626bf6c (commit)
       via  cd1a869f36d2a04c59fd995b83d12d5a0b529e19 (commit)
       via  e3a2f5a80c1e4bd645e7e8bff27ef94f89ceae3e (commit)
       via  6ab526bb7fef3d7d42ff728fa30444e75de7be38 (commit)
       via  7cdfe579a8ad314cf303a280b0de68b026244748 (commit)
       via  f8f8b9030fd63fd6ccc10d02cd2e4cba6ea685b8 (commit)
       via  3120003dc579730ac67cac8a47f209b14ec748d3 (commit)
       via  d516e20a5cfce7f1f0c78587f3ce847125c98921 (commit)
       via  42677f11798ac78f2898fe5ce9913ff8e14578e8 (commit)
      from  4b056c34fa04a3b611a0cf5f70e9b8d59b7ef632 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 48f4c496e659bc28446bfd5aa2d469d5316d49cb
Author: radhika <radhika at curoverse.com>
Date:   Mon Jun 19 15:57:01 2017 -0400

    11060: accessbile repositories query
    
    Arvados-DCO-1.1-Signed-off-by: Radhika Chippada <radhika at curoverse.com>

diff --git a/apps/workbench/app/controllers/users_controller.rb b/apps/workbench/app/controllers/users_controller.rb
index d3acf58..6f527cd 100644
--- a/apps/workbench/app/controllers/users_controller.rb
+++ b/apps/workbench/app/controllers/users_controller.rb
@@ -258,16 +258,9 @@ class UsersController < ApplicationController
 
   def repositories
     # all repositories accessible by current user
-    all_repositories = Hash[Repository.where(authorized_user_uuid: current_user.uuid).collect {|repo| [repo.uuid, repo]}]
+    all_repositories = Hash[Repository.all.order(:name).collect {|repo| [repo.uuid, repo]}]
 
-    # repositories shared with the user
-    repo_links = Link.
-      filter([['head_uuid', 'is_a', 'arvados#repository'],
-              ['tail_uuid', '=', current_user.uuid],
-              ['link_class', '=', 'permission'],
-             ])
-
-    @my_repositories = [] # we want them ordered as owned, manageable, and the rest
+    @my_repositories = [] # we want them ordered as owned and the rest
     @repo_writable = {}
 
     # owned repos
@@ -278,15 +271,6 @@ class UsersController < ApplicationController
       end
     end
 
-    # shared and either writable or manageable
-    handled = @my_repositories.map(&:uuid)
-    repo_links.each do |link|
-      if link.name.in? ['can_write', 'can_manage']
-        @repo_writable[link.head_uuid] = link.name
-        @my_repositories << all_repositories[link.head_uuid] if !link.head_uuid.in?(handled)
-      end
-    end
-
     # rest of the repos
     handled = @my_repositories.map(&:uuid)
     all_repositories.each do |_, repo|

commit e7672a0b679659d6ba90d23b4e102fba747fa9ef
Merge: 4b056c3 4db4e97
Author: radhika <radhika at curoverse.com>
Date:   Mon Jun 19 14:24:15 2017 -0400

    Merge branch 'master' into 11060-all-visible-repos


-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list