cloud-pipeline icon indicating copy to clipboard operation
cloud-pipeline copied to clipboard

GUI Launch form: parameters section enhancements

Open rodichenko opened this issue 3 years ago • 1 comments
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:

  1. Log form: add Export button at the Parameters section, which allows to export job parameters to the file of JSON/csv/... format;
  2. Launch form: add Import parameters file button which allows to import JSON/csv/... file with parameters from (1);
  3. Launch form: we shall group parameters by section field (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"
      ...
    }
  }
...

rodichenko avatar Feb 16 '22 13:02 rodichenko