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

Incorrect field rendering in DAG Params #45290

Open
1 of 2 tasks
andrewD46 opened this issue Dec 30, 2024 · 1 comment
Open
1 of 2 tasks

Incorrect field rendering in DAG Params #45290

andrewD46 opened this issue Dec 30, 2024 · 1 comment
Assignees
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

Comments

@andrewD46
Copy link

andrewD46 commented Dec 30, 2024

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

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

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?

  • Yes I am willing to submit a PR!

Code of Conduct

@andrewD46 andrewD46 added area:core kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet labels Dec 30, 2024
Copy link

boring-cyborg bot commented Dec 30, 2024

Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

@andrewD46 andrewD46 changed the title Data type in DAG Params Incorrect field rendering in DAG Params Dec 30, 2024
@dosubot dosubot bot added the area:UI Related to UI/UX. For Frontend Developers. label Dec 30, 2024
@rawwar rawwar self-assigned this Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants