screwdriver icon indicating copy to clipboard operation
screwdriver copied to clipboard

`templates.parameters` may be an unused property of the templates table.

Open kumada626 opened this issue 3 years ago • 1 comments

What happened: templates schema has parameters property. However, this property is null even if the template has parameters.

        id: 1687
    config: {"image":"node:16","steps":[{"step_print_template_parameters":"echo templateParam = $(meta get parameters.templateParam)\necho templateParamP = $(meta get parameters.templateParamOverwrittenP)\necho templateParamJ = $(meta get parameters.templateParamOverwrittenJ)\n"}],"parameters":{"templateParam":{"value":["template1","template2"],"description":"template parameter"},"templateParamOverwrittenP":{"value":["templateOverwritten1","templateOverwritten2"],"description":"template overwritten parameter P"},"templateParamOverwrittenJ":{"value":["templateOverwritten8","templateOverwritten9"],"description":"template overwritten parameter J"}}}
 namespace: foo
      name: sample-job-parameters
   version: 0.1.4
parameters: NULL

Template parameters data is included in the template.config, teplates.parameters property may be unnecessary.

What you expected to happen: Should not add unnecessary property to data-schema.

How to reproduce it:

kumada626 avatar Jan 27 '22 06:01 kumada626

@sagar1312

jithine avatar Jan 27 '22 20:01 jithine