Incorrect field rendering in DAG Params #45290
Labels
area:core
area:UI
Related to UI/UX. For Frontend Developers.
kind:bug
This is a clearly a bug
needs-triage
label for new issues that we didn't triage yet
Apache Airflow version
2.10.4
If "Other Airflow 2 version" selected, which one?
No response
What happened?
I was using 2.7.1 before and didn't have this problem but after upgrading to 2.10.4 I am facing this problem in my existing DAG.
I'm adding parameters to the DAG using Params. When I create a field with the array type and specify the element type number, the field is rendered as a list on the UI.
But when I create the same field with the array type but specify the element type string, the list is not rendered on the UI and each element must be passed on a new line. I think this is not very convenient and not intuitive.
What you think should happen instead?
I think it would be more convenient if the data type did not affect the way the field is rendered on the UI, and if the array type is specified, then it would be displayed on the UI as a familiar list.
How to reproduce
Code for array with numbers:
params={ "sf_additional_schemas": Param( title="Additional Snowflake schemas", default=[1, 2, 3], type="array", items={ "type": "number" } ),
Code for array with strings:
params={ "sf_additional_schemas": Param( title="Additional Snowflake schemas", default=["schema1"], type="array", items={ "type": "string" } ),
Operating System
MacOS 15.0
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: