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

#2881 opened on Jan 16, 2024

View on GitHub
 (4 comments) (0 reactions) (1 assignee)Java (26,854 stars) (2,579 forks)batch import
area/frontendgood first issue

Description

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

Contributor guide