phi-friday opened a new issue, #41145: URL: https://github.com/apache/airflow/issues/41145
### Apache Airflow version 2.9.3 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? When I create a `TriggerDagRunOperator` with `partial` and `expand_kwargs`, the `Triggered DAG` link button appears to be disabled, and when I click it, it leads to the wrong link. incorrect url sample: `https://localhost:8080/www/dags/trigger_test/grid?tab=details&dag_run_id=manual__2024-07-31T00%3A27%3A35.113684%2B00%3A00&task_id=trigger&map_index=0` expected url sample: `https://localhost:8080/www/dags/trigger_target/graph?dag_run_id=manual__2024-07-31T00%3A27%3A35.113684%2B00%3A00` ![스크린샷 2024-07-31 오전 9 31 50](https://github.com/user-attachments/assets/752e677e-5a44-475c-9f60-cf5e2e44f299) ### What you think should happen instead? _No response_ ### How to reproduce ```python # pyright: reportTypedDictNotRequiredAccess=false from __future__ import annotations from typing import Any from airflow.decorators import dag, task from airflow.operators.empty import EmptyOperator from airflow.operators.trigger_dagrun import TriggerDagRunOperator from pendulum import datetime @dag(start_date=datetime(2024, 1, 1), schedule=None, catchup=False) def trigger_test() -> None: # noqa: D103 @task.python(do_xcom_push=True, multiple_outputs=False) def create_conf() -> list[dict[str, Any]]: from airflow.operators.python import get_current_context context = get_current_context() task_instance = context["task_instance"] run_id = task_instance.run_id return [ {"conf": {"value": idx}, "trigger_run_id": f"{run_id}-{idx}"} for idx in range(2) ] conf = create_conf() trigger = TriggerDagRunOperator.partial( trigger_dag_id="trigger_target", task_id="trigger", deferrable=False, wait_for_completion=False, ).expand_kwargs(conf) _ = conf >> trigger @dag(start_date=datetime(2024, 1, 1), schedule=None, catchup=False) def trigger_target() -> None: # noqa: D103 EmptyOperator(task_id="empty_task") trigger_test() trigger_target() ``` ### Operating System PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" ### Versions of Apache Airflow Providers ```shell ➜ airflow pip freeze | grep apache-airflow-providers apache-airflow-providers-celery==3.7.2 apache-airflow-providers-common-io==1.3.2 apache-airflow-providers-common-sql==1.14.2 apache-airflow-providers-docker==3.12.2 apache-airflow-providers-fab==1.1.1 apache-airflow-providers-ftp==3.10.0 apache-airflow-providers-http==4.12.0 apache-airflow-providers-imap==3.6.1 apache-airflow-providers-jdbc==4.3.1 apache-airflow-providers-odbc==4.6.2 apache-airflow-providers-postgres==5.11.2 apache-airflow-providers-redis==3.7.1 apache-airflow-providers-smtp==1.7.1 apache-airflow-providers-sqlite==3.8.1 ``` ### 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 - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org