You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When playing around with the form features as interoduced in AIP-50 and using the select list option via enum I realized that the default value will not be correctly picked when the form is loaded. Instead the first value always will be pre-selected.
What you think should happen instead
Default value should be respected
How to reproduce
Modify the airflow/example_dags/example_params_ui_tutorial.py:68 and change the default to some other value. Load the form and see that value 1 is still displayed on form load.
Operating System
Ubuntu 20.04
Versions of Apache Airflow Providers
not relevant
Deployment
Official Apache Airflow Helm Chart
Deployment details
not relevant
Anything else
Workaround: Make your default currently top of the list.
@jens-scheffler-bosch FYI,you can open a PR without creating an issue if you know already how to fix it and you want to work on it (doc):
An unusual element of the Apache Airflow project is that you can open a PR to fix an issue or make an enhancement, without needing to open an issue first. This is intended to make it as easy as possible to contribute to the project.
Apache Airflow version
2.6.1
What happened
When playing around with the form features as interoduced in AIP-50 and using the select list option via
enum
I realized that the default value will not be correctly picked when the form is loaded. Instead the first value always will be pre-selected.What you think should happen instead
Default value should be respected
How to reproduce
Modify the
airflow/example_dags/example_params_ui_tutorial.py:68
and change the default to some other value. Load the form and see thatvalue 1
is still displayed on form load.Operating System
Ubuntu 20.04
Versions of Apache Airflow Providers
not relevant
Deployment
Official Apache Airflow Helm Chart
Deployment details
not relevant
Anything else
Workaround: Make your default currently top of the list.
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: