Skip to content

Commit

Permalink
Mark the item as updated after altering the associated tags
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Apr 29, 2024
1 parent 6c8ffa2 commit 843b7a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/galaxy/webapps/galaxy/services/history_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 843b7a5

Please sign in to comment.