From 49669c95dcbe2af0afc60559c740626eb05db52c Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Thu, 8 Aug 2024 11:56:10 +0800 Subject: [PATCH] fix wrong link to the source DAG in consumer DAG's dataset event section #41301 --- airflow/www/static/js/components/SourceTaskInstance.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airflow/www/static/js/components/SourceTaskInstance.tsx b/airflow/www/static/js/components/SourceTaskInstance.tsx index e2db366c290ab..fd64faddb4bbf 100644 --- a/airflow/www/static/js/components/SourceTaskInstance.tsx +++ b/airflow/www/static/js/components/SourceTaskInstance.tsx @@ -35,6 +35,7 @@ type SourceTIProps = { }; const gridUrl = getMetaValue("grid_url"); +const dagId = getMetaValue("dag_id") || "__DAG_ID__"; const SourceTaskInstance = ({ datasetEvent, @@ -56,7 +57,7 @@ const SourceTaskInstance = ({ }); let url = `${gridUrl?.replace( - "__DAG_ID__", + dagId, sourceDagId || "" )}?dag_run_id=${encodeURIComponent( sourceRunId || ""