Allow connecting integer param into data column parameter

Closes https://github.com/galaxyproject/galaxy/issues/16491
This commit is contained in:
mvdbeek
2024-08-09 19:41:14 +02:00
parent 03a7fda6a3
commit dc632c3a34
3 changed files with 42 additions and 1 deletions
@@ -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);
@@ -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"
@@ -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