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

   ### Apache Airflow version
   
   3.0.0
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   In the current UI implementation, there is no way to see Asset Alias 
dependencies with DAG in Airflow 2.10.5, we were able to see that in the 
dependency graph.
   
   **AF2**
   
   <img width="694" alt="Image" 
src="https://github.com/user-attachments/assets/b082371e-615c-417f-bd92-48132efe8030";
 />
   
   
   Now in AF3 there is only the DAG graph where we can see Alias info but that 
will not show dependencies with other DAG
   
   <img width="759" alt="Image" 
src="https://github.com/user-attachments/assets/723a2d45-0ce2-4a1e-85f0-4f44724ffcfd";
 />
   
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   Add below DAG as per that  dependency should be 
`example_dataset_alias_mapped` (DAG) --> `alias-dataset-1`(Alias) --> 
`downstream_alias`(DAG). In current UI there is no way to can see this 
dependency as we were able to see in AF2.
   
   ```
   """
   ###
   
   """
   
   from airflow.decorators import dag, task
   from airflow.datasets import Dataset, DatasetAlias
   from airflow.datasets.metadata import Metadata
   from pendulum import datetime
   
   my_alias_name = "alias-dataset-1"
   
   
   @dag(
       dag_display_name="example_dataset_alias_mapped",
       start_date=datetime(2024, 8, 1),
       schedule=None,
       catchup=False,
       tags=["datasets"],
   )
   def dataset_alias_dynamic_test():
       @task
       def upstream_task():
           return ["a", "b"]
   
       @task(outlets=[DatasetAlias(my_alias_name)])
       def use_metadata(name):
           yield Metadata(
               Dataset(name),
               alias=my_alias_name,
               extra={}  # extra is NOT optional
           )
   
       use_metadata.expand(name=upstream_task())
   
   
   dataset_alias_dynamic_test()
   
   
   @dag(
       start_date=datetime(2024, 8, 1),
       schedule=[DatasetAlias(my_alias_name)],
       catchup=False,
       tags=["dataset"]
   )
   def downstream_alias():
       @task
       def t1():
           return 0
   
       t1()
   
   
   downstream_alias()
   ```
   
   ### Operating System
   
   linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to