Skip to content

Airflow 2.10.5 broke "object" params: DAGs are not triggerable #48767

@pbhuss

Description

@pbhuss

Apache Airflow version

2.10.5

If "Other Airflow 2 version" selected, which one?

No response

What happened?

One of these two PRs introduced into Airflow 2.10.5 appears to have broken the ability to trigger DAGs that use "object" parameters

Fix object and array DAG params that have a None default (#45313) (#45315)

If you attempt to trigger a DAG with an "object" param, filling out the form and then clicking the "Trigger" button in the UI does nothing.

What you think should happen instead?

DAG should be triggered if the form is filled out and "Trigger" is clicked

How to reproduce

Define a DAG with a required "object" parameter:

from airflow import DAG
from airflow.models import Param
from airflow.operators.empty import EmptyOperator

with DAG(
    dag_id="aaa.testing",
    schedule=None,
    params={
        "object_param": Param(
            title="Object Param",
            type="object",
        ),

    },
    render_template_as_native_obj=True,
) as dag:

    EmptyOperator(task_id="empty")

Attempt to trigger the DAG in the UI. Clicking the "Trigger" button does nothing.

Image

Operating System

Debian GNU/Linux 12 (bookworm)

Versions of Apache Airflow Providers

No response

Deployment

Astronomer

Deployment details

We are using Astro Runtime 12.7.1

Anything else?

Bug did not occur in Airflow 2.10.3

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIRelated to UI/UX. For Frontend Developers.area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions