From 75967562d779337c0920841a0a66d130b4ba51a9 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Thu, 26 May 2022 15:26:17 -0300 Subject: [PATCH 1/1] 19144: Resets storage_classes_confirmed* fields on WB1 copy action. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- apps/workbench/app/controllers/actions_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/workbench/app/controllers/actions_controller.rb b/apps/workbench/app/controllers/actions_controller.rb index 3667d8acaa..df489d2eeb 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 -- 2.30.2