Skip to content

Conversation

@Lee-W
Copy link
Member

@Lee-W Lee-W commented Aug 6, 2023

DATAPROC_JOB_LINK was DATAPROC_JOB_LOG_LINK. This renaming breaks backward compatibility. Thus, adding an alias for fixing it.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

DATAPROC_JOB_LINK was DATAPROC_JOB_LOG_LINK. This renaming breaks backward compatibility.
Thus, adding an alias for fixing it.
@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Aug 6, 2023
@Lee-W Lee-W marked this pull request as ready for review August 6, 2023 07:33
@eladkal eladkal changed the title fix(providers.google): alias DATAPROC_JOB_LOG_LINK to DATAPROC_JOB_LINK Alias DATAPROC_JOB_LOG_LINK to DATAPROC_JOB_LINK Aug 7, 2023
@eladkal eladkal merged commit 8997b5e into apache:main Aug 7, 2023

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
Copy link
Member

@potiuk potiuk Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One (post merge) comment - I think we should not remove it in the next major release if we do not do deprecation warning when it is used. The user will have no warnings whatsoever if we do.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I tried to add the warning through #33189 (the way how DATAPROC_JOB_LOG_LINK is mapped to DATAPROC_JOB_LINK has been changed as well)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants