Skip to content

Commit

Permalink
Also copy contents to history when send to new history is active
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Sep 21, 2023
1 parent 53074a0 commit b768439
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/galaxy/workflow/run_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
EffectiveOutput,
History,
HistoryDatasetAssociation,
HistoryDatasetCollectionAssociation,
LibraryDataset,
LibraryDatasetDatasetAssociation,
WorkflowInvocation,
Expand Down Expand Up @@ -400,7 +401,10 @@ def build_workflow_run_configs(
f"Unknown workflow input source '{input_source}' specified."
)
if add_to_history and content.history != history:
content = content.copy(flush=False)
if isinstance(content, HistoryDatasetCollectionAssociation):
content = content.copy(element_destination=history, flush=False)
else:
content = content.copy(flush=False)
history.stage_addition(content)
input_dict["content"] = content
except AssertionError:
Expand Down

0 comments on commit b768439

Please sign in to comment.