This is an automated email from the ASF dual-hosted git repository.
eladkal 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 8997b5e95f Alias `DATAPROC_JOB_LOG_LINK` to `DATAPROC_JOB_LINK`
(#33148)
8997b5e95f is described below
commit 8997b5e95f67a14d5e5fdbcb131643d702059359
Author: Wei Lee <[email protected]>
AuthorDate: Mon Aug 7 15:10:48 2023 +0800
Alias `DATAPROC_JOB_LOG_LINK` to `DATAPROC_JOB_LINK` (#33148)
* fix(providers.google): alias DATAPROC_JOB_LOG_LINK to DATAPROC_JOB_LINK
DATAPROC_JOB_LINK was DATAPROC_JOB_LOG_LINK. This renaming breaks backward
compatibility.
Thus, adding an alias for fixing it.
* docs(providers.google): add a TODO note for removing
DATAPROC_JOB_LOG_LINK alias in the next major release
---
airflow/providers/google/cloud/links/dataproc.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/airflow/providers/google/cloud/links/dataproc.py
b/airflow/providers/google/cloud/links/dataproc.py
index 16c1493e1e..6dac1aac82 100644
--- a/airflow/providers/google/cloud/links/dataproc.py
+++ b/airflow/providers/google/cloud/links/dataproc.py
@@ -32,6 +32,9 @@ if TYPE_CHECKING:
DATAPROC_BASE_LINK = BASE_LINK + "/dataproc"
DATAPROC_JOB_LINK = DATAPROC_BASE_LINK +
"/jobs/{job_id}?region={region}&project={project_id}"
+# TODO: remove DATAPROC_JOB_LOG_LINK alias in the next major release
+# For backward-compatibility, DATAPROC_JOB_LINK was DATAPROC_JOB_LOG_LINK.
+DATAPROC_JOB_LOG_LINK = DATAPROC_JOB_LINK
DATAPROC_CLUSTER_LINK = (
DATAPROC_BASE_LINK +
"/clusters/{cluster_id}/monitoring?region={region}&project={project_id}"