Skip to content

Instantly share code, notes, and snippets.

@dannon
Created December 15, 2022 22:24
Show Gist options
  • Save dannon/e6f8d90ca013e9462e421e3814717658 to your computer and use it in GitHub Desktop.
Save dannon/e6f8d90ca013e9462e421e3814717658 to your computer and use it in GitHub Desktop.
diff --git a/lib/galaxy/webapps/galaxy/controllers/workflow.py b/lib/galaxy/webapps/galaxy/controllers/workflow.py
index 63a8d66698..3e51a7d830 100644
--- a/lib/galaxy/webapps/galaxy/controllers/workflow.py
+++ b/lib/galaxy/webapps/galaxy/controllers/workflow.py
@@ -538,16 +538,13 @@ class WorkflowController(BaseUIController, SharableMixin, UsesStoredWorkflowMixi
]

# identify item tags
- item_tags = [tag for tag in stored.tags if tag.user == trans.user]
- item_tag_names = []
- for ta in item_tags:
- item_tag_names.append(escape(ta.tag.name))
+ item_tags = stored.make_tag_string_list()

# build workflow editor model
editor_config = {
"id": trans.security.encode_id(stored.id),
"name": stored.name,
- "tags": item_tag_names,
+ "tags": item_tags,
"initialVersion": version,
"annotation": self.get_item_annotation_str(trans.sa_session, trans.user, stored),
"moduleSections": module_sections,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment