Skip to content

Remove unused batch methods from auth manager - #52883

Merged
vincbeck merged 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/remove_batch
Jul 7, 2025
Merged

Remove unused batch methods from auth manager#52883
vincbeck merged 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/remove_batch

Conversation

@vincbeck

@vincbeck vincbeck commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

Remove methods batch_is_authorized_connection, batch_is_authorized_pool and batch_is_authorized_variable from auth manager interface (and underlying concrete implementations) since they are no longer used.


^ 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 airflow-core/newsfragments.

@vincbeck
vincbeck force-pushed the vincbeck/remove_batch branch from d7d1f6b to c3141eb Compare July 4, 2025 15:57

@o-nikolas o-nikolas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code changes LGTM

Will this part of the interface never be used in the future? If so, we plan to just add it back?

@vincbeck

vincbeck commented Jul 4, 2025

Copy link
Copy Markdown
Contributor Author

Code changes LGTM

Will this part of the interface never be used in the future? If so, we plan to just add it back?

It is always hard to anticipate needs but I do not think we'll need it. And if so, we can always add it back. These methods are not abstract methods, so adding them back is not a breaking change

@vincbeck
vincbeck force-pushed the vincbeck/remove_batch branch from c3141eb to a5347e9 Compare July 7, 2025 14:59

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

classic YAGNI

@vincbeck
vincbeck merged commit a9a78f6 into apache:main Jul 7, 2025
102 checks passed
@vincbeck
vincbeck deleted the vincbeck/remove_batch branch July 7, 2025 16:23
HsiuChuanHsu pushed a commit to HsiuChuanHsu/airflow that referenced this pull request Jul 10, 2025
stephen-bracken pushed a commit to stephen-bracken/airflow that referenced this pull request Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants