diff --git a/client/src/components/Workflow/Editor/modules/terminals.ts b/client/src/components/Workflow/Editor/modules/terminals.ts index 8642a6034ce9..314da150dec1 100644 --- a/client/src/components/Workflow/Editor/modules/terminals.ts +++ b/client/src/components/Workflow/Editor/modules/terminals.ts @@ -534,7 +534,18 @@ export class InputParameterTerminal extends BaseInputTerminal { } effectiveType(parameterType: string) { - return parameterType == "select" ? "text" : parameterType; + let newType: string; + switch (parameterType) { + case "select": + newType = "text"; + break; + case "data_column": + newType = "integer"; + break; + default: + newType = parameterType; + } + return newType; } attachable(other: BaseOutputTerminal) { const effectiveThisType = this.effectiveType(this.type); diff --git a/lib/galaxy_test/workflow/integer_into_data_column.gxwf-tests.yml b/lib/galaxy_test/workflow/integer_into_data_column.gxwf-tests.yml new file mode 100644 index 000000000000..890acb144ee1 --- /dev/null +++ b/lib/galaxy_test/workflow/integer_into_data_column.gxwf-tests.yml @@ -0,0 +1,15 @@ +- doc: | + Test to verify text parameter can be connected to data column param + job: + input: + type: File + value: 2.tabular + file_type: tabular + column: + value: "2" + type: raw + outputs: + output: + asserts: + - that: has_line + line: "parameter: 2" diff --git a/lib/galaxy_test/workflow/integer_into_data_column.gxwf.yml b/lib/galaxy_test/workflow/integer_into_data_column.gxwf.yml new file mode 100644 index 000000000000..b665558b0a89 --- /dev/null +++ b/lib/galaxy_test/workflow/integer_into_data_column.gxwf.yml @@ -0,0 +1,15 @@ +class: GalaxyWorkflow +inputs: + input: + type: data + column: + type: integer +outputs: + output: + outputSource: data_column_step/output +steps: + data_column_step: + tool_id: gx_data_column + in: + ref_parameter: input + parameter: column