Skip to content

Commit

Permalink
Alias DATAPROC_JOB_LOG_LINK to DATAPROC_JOB_LINK (#33148)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Lee-W committed Aug 7, 2023
1 parent f78a836 commit 8997b5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airflow/providers/google/cloud/links/dataproc.py
Expand Up @@ -32,6 +32,9 @@

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}"
Expand Down

0 comments on commit 8997b5e

Please sign in to comment.