kestra-io / kestra

:zap: Workflow Automation Platform. Orchestrate & Schedule code in any language, run anywhere, 500+ plugins. Alternative to Zapier, Rundeck, Camunda, Airflow...
https://kestra.io
Apache License 2.0
12.33k stars 1.04k forks source link

UI doesn't let you select TIME or DURATION input types at execution if defaults set #3697

Closed wrussell1999 closed 1 month ago

wrussell1999 commented 5 months ago

Describe the issue

When setting a default value for TIME or DURATION, the execute interface doesn't recognise them, and refuses to let you override it. If you remove the default values, the UI works as expected. If the TIME and DURATION don't support defaults, it would be helpful to show an error to the user.

Also the duration type gives you a time picker in the UI, rather than a duration option: Screenshot 2024-05-10 at 11 42 24

This doesn't work:

inputs:
  - id: time
    type: TIME
    defaults: "11:01:01" 

  - id: duration
    type: DURATION
    defaults: PT2M

To get it to work, you need to remove the defaults but it's unclear that is the problem (see video):

inputs:
  - id: time
    type: TIME

  - id: duration
    type: DURATION

https://github.com/kestra-io/kestra/assets/34094921/d1ee46dc-d6ac-4e7c-9967-1350a7bae99f

Environment

tchiotludo commented 5 months ago

related issues: