From 843b7a5fa14c93f6dead01559c158f518d6c192d Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 29 Apr 2024 14:00:52 +0200 Subject: [PATCH] Mark the item as updated after altering the associated tags --- lib/galaxy/webapps/galaxy/services/history_contents.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/galaxy/webapps/galaxy/services/history_contents.py b/lib/galaxy/webapps/galaxy/services/history_contents.py index 962f3f2b9d38..86b09ac29b11 100644 --- a/lib/galaxy/webapps/galaxy/services/history_contents.py +++ b/lib/galaxy/webapps/galaxy/services/history_contents.py @@ -1510,6 +1510,10 @@ def _change_dbkey(self, item: HistoryItemModel, params: ChangeDbkeyOperationPara def _add_tags(self, trans: ProvidesUserContext, item: HistoryItemModel, params: TagOperationParams): trans.tag_handler.add_tags_from_list(trans.user, item, params.tags, flush=self.flush) + # Changing tags does not change the item, but we need to update the history to trigger the completion of the operation + item.update() def _remove_tags(self, trans: ProvidesUserContext, item: HistoryItemModel, params: TagOperationParams): trans.tag_handler.remove_tags_from_list(trans.user, item, params.tags, flush=self.flush) + # Changing tags does not change the item, but we need to update the history to trigger the completion of the operation + item.update()