17111: Deselect unsigned_manifest_text by default in groups#contents. 2.1.1
authorTom Clegg <tom@tomclegg.ca>
Fri, 13 Nov 2020 20:44:43 +0000 (15:44 -0500)
committerPeter Amstutz <peter.amstutz@curii.com>
Mon, 16 Nov 2020 18:35:12 +0000 (13:35 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>

services/api/app/controllers/arvados/v1/groups_controller.rb
services/api/test/functional/arvados/v1/groups_controller_test.rb

index 3e238a5adadb0223449d326cdbe0377a86e977d9..732d102be24a91ad0a0b86e25bbb4cfe8d532070 100644 (file)
@@ -268,7 +268,7 @@ class Arvados::V1::GroupsController < ApplicationController
       @select = nil
       where_conds = filter_by_owner
       if klass == Collection
-        @select = klass.selectable_attributes - ["manifest_text"]
+        @select = klass.selectable_attributes - ["manifest_text", "unsigned_manifest_text"]
       elsif klass == Group
         where_conds = where_conds.merge(group_class: "project")
       end
index f413188b54b2ba54236a8ea5ce2ab51c002cb434..b87d30d2886859591f2ac7506bcafd95b3e1d63b 100644 (file)
@@ -316,7 +316,7 @@ class Arvados::V1::GroupsControllerTest < ActionController::TestCase
     end
   end
 
-  test "Collection contents don't include manifest_text" do
+  test "Collection contents don't include manifest_text or unsigned_manifest_text" do
     authorize_with :active
     get :contents, params: {
       id: groups(:aproject).uuid,
@@ -327,7 +327,9 @@ class Arvados::V1::GroupsControllerTest < ActionController::TestCase
     refute(json_response["items"].any? { |c| not c["portable_data_hash"] },
            "response included an item without a portable data hash")
     refute(json_response["items"].any? { |c| c.include?("manifest_text") },
-           "response included an item with a manifest text")
+           "response included an item with manifest_text")
+    refute(json_response["items"].any? { |c| c.include?("unsigned_manifest_text") },
+           "response included an item with unsigned_manifest_text")
   end
 
   test 'get writable_by list for owned group' do