BasPH opened a new issue, #51583:
URL: https://github.com/apache/airflow/issues/51583

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### If "Other Airflow 2 version" selected, which one?
   
   Checked on 2.9.3 and 2.11
   
   ### What happened?
   
   The DAG dependencies view doesn't display dependencies that are mapped 
operators. For example:
   
   ```python
   import datetime
   
   from airflow import DAG
   from airflow.operators.empty import EmptyOperator
   from airflow.operators.trigger_dagrun import TriggerDagRunOperator
   
   with DAG(
       "dag_dependencies_dag_b",
       start_date=datetime.datetime(2025, 1, 1),
       schedule=None,
   ):
       EmptyOperator(task_id="empty")
   
   with DAG(
       "dag_dependencies_dag_a",
       start_date=datetime.datetime(2025, 1, 1),
       schedule=None,
   ):
       TriggerDagRunOperator.partial(task_id="trigger_dag_run", 
trigger_dag_id="dag_dependencies_dag_b").expand(
           conf=[{"a": 1}, {"b": 2}, {"c": 3}]
       )
   ```
   
   Tested on Airflow 2.9.3 & 2.11, since there's no DAG dependencies view on 
Airflow 3 yet.
   
   ### What you think should happen instead?
   
   The `trigger_dag_id` is configured via `partial` so it should be clear which 
dependency is set.
   
   ### How to reproduce
   
   Set code above.
   
   ### Operating System
   
   n/a
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Astronomer
   
   ### 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

Reply via email to