From: Lucas Di Pentima Date: Thu, 26 May 2022 18:26:17 +0000 (-0300) Subject: 19144: Resets storage_classes_confirmed* fields on WB1 copy action. X-Git-Tag: 2.5.0~148^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/75967562d779337c0920841a0a66d130b4ba51a9?hp=3eae74e5af3f81c324ec1d617141afe7619719b4 19144: Resets storage_classes_confirmed* fields on WB1 copy action. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- 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