kestra-io/kestra

Warn in the UI (e.g. when clicking on "Save") if a scheduled flow has inputs that have no defaults + no inputs set on the trigger

Open

#2,881 建立於 2024年1月16日

在 GitHub 查看
 (4 留言) (0 反應) (1 負責人)Java (26,854 star) (2,579 fork)batch import
area/frontendgood first issue

描述

Feature description

Use case

The following flow:

id: missing_default
namespace: qa

inputs:
  - name: user
    type: STRING

tasks:
  - id: hello
    type: io.kestra.core.tasks.log.Log
    message: hey there {{ inputs.user }}! 👋

triggers:
  - id: every_minute
    type: io.kestra.core.models.triggers.types.Schedule
    cron: "*/1 * * * *"

Will fail every minute because the user forgot to enter a default value: Missing variable: 'inputs' on 'hey there {{ inputs.user }}!

Question

Can we provide a warning/error message in the UI when an input is used somewhere within a scheduled flow even though it has no defaults + no inputs set on the schedule?

if not possible/easy to do, please close the issue

this is only to help users discover such issues as early as possible

貢獻者指南