From 0d9a30f993244b33ce82b0dadeeb9e865c27da28 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 10 Dec 2024 18:54:07 +0100 Subject: [PATCH] Record implicitly converted dataset as input dataset I believe this was always the intention and is how it works if the dataset already exists (i.e. on a re-run). The converter records the dataset that the user chose, so there's no gap in the provenance either. This somewhat addresses https://github.com/galaxyproject/total-perspective-vortex/issues/141 so you can (reliably) differetiate your rules on the input datatype and filesize combination. --- lib/galaxy/tools/actions/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/tools/actions/__init__.py b/lib/galaxy/tools/actions/__init__.py index 31c7eb76526c..5c60c389c043 100644 --- a/lib/galaxy/tools/actions/__init__.py +++ b/lib/galaxy/tools/actions/__init__.py @@ -139,7 +139,9 @@ def process_dataset(data, formats=None): if converted_dataset: data = converted_dataset else: - data = data.get_converted_dataset(trans, target_ext, target_context=parent, history=history) + data = data.get_converted_dataset( + trans, target_ext, target_context=parent, history=history, return_output=True + ) input_name = prefixed_name # Checked security of whole collection all at once if mapping over this input, else