[arvados] created: 2.1.0-2550-g12440f46c

git repository hosting git at public.arvados.org
Thu May 26 18:27:21 UTC 2022


        at  12440f46cd197713157e19b44671a6e357d5431b (commit)


commit 12440f46cd197713157e19b44671a6e357d5431b
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Thu May 26 15:26:17 2022 -0300

    19144: Resets storage_classes_confirmed* fields on WB1 copy action.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/apps/workbench/app/controllers/actions_controller.rb b/apps/workbench/app/controllers/actions_controller.rb
index 3667d8aca..df489d2ee 100644
--- a/apps/workbench/app/controllers/actions_controller.rb
+++ b/apps/workbench/app/controllers/actions_controller.rb
@@ -87,6 +87,9 @@ class ActionsController < ApplicationController
             end
             if resource_class == Collection
               dst.manifest_text = Collection.select([:manifest_text]).where(uuid: src.uuid).with_count("none").first.manifest_text
+              # Fixes bug 19144: nullify some fields that are managed by keep-balance.
+              dst.storage_classes_confirmed = []
+              dst.storage_classes_confirmed_at = nil
             end
           when :move
             dst = src

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list