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()