This is an automated email from the ASF dual-hosted git repository.
weilee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 49669c95dc fix wrong link to the source DAG in consumer DAG's dataset
event section #41301
49669c95dc is described below
commit 49669c95dcbe2af0afc60559c740626eb05db52c
Author: Wei Lee <[email protected]>
AuthorDate: Thu Aug 8 11:56:10 2024 +0800
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 e2db366c29..fd64faddb4 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 || ""