-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dependsOn
to the SELECT/MULTISELECT-type inputs to allow one input to depend on the chosen value from another input
#3610
Labels
Comments
anna-geller
changed the title
Add
Add Aug 12, 2024
dependsOn
to the ENUM-type inputs to allow one input to depend on the chosen value from another inputdependsOn
to the SELECT/MULTISELECT-type inputs to allow one input to depend on the chosen value from another input
anna-geller
added
the
kind/highlight
One of the highlights of the upcoming release
label
Aug 12, 2024
anna-geller
added
kind/customer-request
Requested by one or more customers
and removed
kind/highlight
One of the highlights of the upcoming release
labels
Aug 15, 2024
fhussonnois
added a commit
that referenced
this issue
Sep 19, 2024
This commits adds: - support for dependsOn field in flow's inputs - support for expression on input of type SELECT, MULTISELECT - new REST API to validate inputs for an execution - some code cleanup, and method renaming Fix: #3610
fhussonnois
added a commit
that referenced
this issue
Sep 19, 2024
This commits adds: - support for dependsOn field in flow's inputs - support for expression on input of type SELECT, MULTISELECT - new REST API to validate inputs for an execution - some code cleanup, and method renaming Fix: #3610
fhussonnois
added a commit
that referenced
this issue
Sep 19, 2024
This commits adds: - support for dependsOn field in flow's inputs - support for expression on input of type SELECT, MULTISELECT - new REST API to validate inputs for an execution - some code cleanup, and method renaming Fix: #3610
fhussonnois
added a commit
that referenced
this issue
Sep 19, 2024
This commits adds: - support for dependsOn field in flow's inputs - support for expression on input of type SELECT, MULTISELECT - new REST API to validate inputs for an execution - some code cleanup, and method renaming Fix: #3610
fhussonnois
added a commit
that referenced
this issue
Sep 19, 2024
This commits adds: - support for dependsOn field in flow's inputs - support for expression on input of type SELECT, MULTISELECT - new REST API to validate inputs for an execution - some code cleanup, and method renaming Fix: #3610
fhussonnois
added a commit
that referenced
this issue
Sep 19, 2024
This commits adds: - support for dependsOn field in flow's inputs - support for expression on input of type SELECT, MULTISELECT - new REST API to validate inputs for an execution - some code cleanup, and method renaming Fix: #3610
fhussonnois
added a commit
that referenced
this issue
Sep 19, 2024
This commits adds: - support for dependsOn field in flow's inputs - support for expression on input of type SELECT, MULTISELECT - new REST API to validate inputs for an execution - some code cleanup, and method renaming Fix: #3610
fhussonnois
added a commit
that referenced
this issue
Sep 20, 2024
This commits adds: - support for dependsOn field in flow's inputs - support for expression on input of type SELECT, MULTISELECT - new REST API to validate inputs for an execution - some code cleanup, and method renaming Fix: #3610
fhussonnois
added a commit
that referenced
this issue
Sep 20, 2024
This commits adds: - support for dependsOn field in flow's inputs - support for expression on input of type SELECT, MULTISELECT - new REST API to validate inputs for an execution - some code cleanup, and method renaming Fix: #3610
fhussonnois
added a commit
that referenced
this issue
Sep 20, 2024
This commits adds: - support for dependsOn field in flow's inputs - support for expression on input of type SELECT, MULTISELECT - new REST API to validate inputs for an execution - some code cleanup, and method renaming Fix: #3610
fhussonnois
added a commit
that referenced
this issue
Sep 20, 2024
anna-geller
added
kind/highlight
One of the highlights of the upcoming release
and removed
kind/highlight
One of the highlights of the upcoming release
labels
Sep 22, 2024
fhussonnois
added a commit
that referenced
this issue
Sep 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Dynamic inputs help manage complex use cases where one input may depend on the chosen value from another input.
Example
Imagine that you want your end user to select the cloud provider first. Then, based on the chosen cloud provider, you want to show the services available for that cloud provider. The new
dependsOn
attribute in all SELECT-type inputs helps accomplish that:The
services
input will be dynamically rendered based on the chosen cloud provider.UI behavior
When you execute this flow, the
services
input will be disabled until you select a value for thecloud
input.Once you select a value for the
cloud
input, theservices
input will show only the services available for the selected cloud provider. This dynamic rendering of dependent inputs allows you to select the correct service matching the previously chosen cloud provider.Backend behavior
Under the hood, Kestra will use a JSON schema with
oneOf
in the backend:Fetching SELECTed values from KV Store
Once we add the KV Store, you can also fetch these values dynamically (related issue #283).
Imagine that the SELECT
values
are dynamic and need to be fetched from some external source like a database or file. You can create a flow that will regularly update the value for a given key. Then, you can reference that value by key in your dynamic input:Using keys:
The text was updated successfully, but these errors were encountered: