cloud-pipeline
cloud-pipeline copied to clipboard
GUI Launch form: parameters section enhancements
trafficstars
Background At the moment, Cloud Pipeline' Launch form allows to add, modify or remove job parameters manually, but it would be nice to have an ability to upload a file with job parameters/values. Also all parameters are displayed in a non-sorted order, while grouped way is more readable.
Approach Let's enhance Launch Form and job Log form:
- Log form: add
Exportbutton at the Parameters section, which allows to export job parameters to the file ofJSON/csv/... format; - Launch form: add
Import parameters filebutton which allows to importJSON/csv/... file with parameters from (1); - Launch form: we shall group parameters by
sectionfield (if present)
Other options
JSON file format:
[
{
"name": "parameter1",
"type": "string",
"required": false,
"value": "value1"
},
{
"name": "parameter2",
"type": "input",
"required": true,
"value": "s3://bucket/file.ext,s3://bucket/folder/file.ext"
},
]
CSV file format:
name,type,required,value
parameter1,string,false,value1
parameter2,input,false,"s3://bucket/file.ext,s3://bucket/folder/file.ext"
Cloud Pipeline API enhancements
We need to enhance GET, POST pipeline/<id>/configurations methods to respect section property of the parameters, configured via config.json:
...
"parameters": {
"parameter_name": {
...
"section": "General"
...
}
}
...