Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate arbitrary parameter passing to RDS hook #32352

Merged
merged 2 commits into from
Jul 4, 2023

Conversation

vandonr-amz
Copy link
Contributor

The way RDS operators are built allows passing arbitrary parameters to the hook via a kwarg named hook_params. However this is not documented anywhere, and the usefulness of the feature looks pretty dubious to me.

We usually just let users pass the aws conn id and eventually the region, not anything they want.
I doubt anyone is using that, so I'm deprecating without any alternative ? If that's an OK thing to do ?

warnings.warn(
"The parameter hook_params is deprecated and will be removed. "
"If you were using it, please get in touch either on airflow slack, "
"or by opening a github issue on the project. "
Copy link
Contributor

Choose a reason for hiding this comment

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

Very informative deprecation message. Just a small suggestion -

Suggested change
"or by opening a github issue on the project. "
"or by opening a Github issue on the project. "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon-aws AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants