guan404ming commented on code in PR #58059:
URL: https://github.com/apache/airflow/pull/58059#discussion_r2606051457


##########
airflow-core/src/airflow/api_fastapi/core_api/services/ui/dependencies.py:
##########
@@ -76,3 +82,99 @@ def extract_single_connected_component(
     ]
 
     return {"nodes": nodes, "edges": edges}
+
+
+def get_data_dependencies(asset_id: int, session: Session) -> dict[str, 
list[dict]]:
+    """Get full data lineage for an asset."""
+    from sqlalchemy import select
+
+    from airflow.models.asset import TaskInletAssetReference, 
TaskOutletAssetReference
+
+    SEPARATOR = "__SEPARATOR__"
+
+    nodes: list[dict] = []
+    edges: list[dict] = []
+    node_ids: set[str] = set()
+    edge_set: set[tuple[str, str]] = set()

Review Comment:
   Thanks that make sense to me, I've updated. 



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