[ARVADOS] created: 1.3.0-1-gf8ea35a26

Git user git at public.curoverse.com
Tue Dec 4 10:43:43 EST 2018


        at  f8ea35a26789594253cff761dce87dd51ff9e89c (commit)


commit f8ea35a26789594253cff761dce87dd51ff9e89c
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date:   Tue Dec 4 10:43:01 2018 -0500

    14576: Adjust query for admins that filters out trashed items
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/services/api/app/models/arvados_model.rb b/services/api/app/models/arvados_model.rb
index 4e7f8f0bf..30c4c486e 100644
--- a/services/api/app/models/arvados_model.rb
+++ b/services/api/app/models/arvados_model.rb
@@ -274,9 +274,8 @@ class ArvadosModel < ActiveRecord::Base
       if !include_trash
         if sql_table != "api_client_authorizations"
           # Only include records where the owner is not trashed
-          sql_conds = "NOT EXISTS(SELECT 1 FROM #{PERMISSION_VIEW} "+
-                      "WHERE trashed = 1 AND "+
-                      "(#{sql_table}.owner_uuid = target_uuid)) #{exclude_trashed_records}"
+          sql_conds = "#{sql_table}.owner_uuid NOT IN (SELECT target_uuid FROM #{PERMISSION_VIEW} "+
+                      "WHERE trashed = 1) #{exclude_trashed_records}"
         end
       end
     else

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list