Skip to content
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

Trigger UI Form Dropdowns with enums do not set default correct #31399

Closed
2 tasks done
jscheffl opened this issue May 18, 2023 · 1 comment · Fixed by #31400
Closed
2 tasks done

Trigger UI Form Dropdowns with enums do not set default correct #31399

jscheffl opened this issue May 18, 2023 · 1 comment · Fixed by #31400
Labels
area:webserver Webserver related Issues kind:bug This is a clearly a bug

Comments

@jscheffl
Copy link
Contributor

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 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.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@jscheffl jscheffl added area:core kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet labels May 18, 2023
@hussein-awala hussein-awala added area:webserver Webserver related Issues and removed area:core needs-triage label for new issues that we didn't triage yet labels May 19, 2023
@hussein-awala
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues kind:bug This is a clearly a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants