Unverified Commit 27feb740 authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #17678 from mvdbeek/no_runtime_value_connected_value_mixup

[23.2] Separate `ConnectedValue` from `RuntimeValue`
parents 52ca282e 13a691c7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -81,6 +81,7 @@ from galaxy.tools.parameters import (
    visit_input_values,
)
from galaxy.tools.parameters.basic import (
    ConnectedValue,
    DataCollectionToolParameter,
    DataToolParameter,
    RuntimeValue,
@@ -1494,12 +1495,12 @@ class WorkflowContentsManager(UsesAnnotations):
                if name:
                    input_dicts.append({"name": name, "description": annotation_str})
            for name, val in step_state.items():
                if isinstance(val, RuntimeValue):
                if isinstance(val, RuntimeValue) and not isinstance(val, ConnectedValue):
                    input_dicts.append({"name": name, "description": f"runtime parameter for tool {module.get_name()}"})
                elif isinstance(val, dict):
                    # Input type is described by a dict, e.g. indexed parameters.
                    for partval in val.values():
                        if isinstance(partval, RuntimeValue):
                        if isinstance(partval, RuntimeValue) and not isinstance(val, ConnectedValue):
                            input_dicts.append(
                                {"name": name, "description": f"runtime parameter for tool {module.get_name()}"}
                            )