-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[cleanup][broker] Remove AuthorizationProvider methods deprecated in 2.7 and 2.9 #19182
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
[cleanup][broker] Remove AuthorizationProvider methods deprecated in 2.7 and 2.9 #19182
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19182 +/- ##
============================================
+ Coverage 47.45% 47.48% +0.02%
- Complexity 10760 10788 +28
============================================
Files 713 713
Lines 69672 69722 +50
Branches 7482 7492 +10
============================================
+ Hits 33063 33105 +42
- Misses 32895 32938 +43
+ Partials 3714 3679 -35
Flags with carried forward coverage won't be shown. Click here to find out more.
|
mattisonchao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to notify in the release notion.
By the way, have you checked the corresponding test?
|
Oh, I saw the label. Please ignore my comment first sentence. |
Motivation
We have many methods in the
AuthorizationProviderinterface that have been annotated with@Deprecatedfor since the 2.7.0 release and the 2.9.0 release. The PR that deprecated most of these methods was merged August 2020: #7788. The other PR was #12064. These methods are not used by the Pulsar code base, but may technically be used by third party extensions, which is why it is important to be careful when removing them. That being said, enough time has passed. Removing these methods should make theAuthorizationProvidereasier to read and easier to use.Modifications
allowTenantOperationAsync,allowTenantOperation,allowNamespaceOperationAsync,allowNamespaceOperation,allowNamespacePolicyOperationAsync,allowNamespacePolicyOperation,allowTopicOperationAsync,allowTopicOperation(all deprecated by allowTopicOperationAsync should check the original role is super user (#1355) #7788)initializeand remove backwards compatibility references (deprecated by [PIP-45] Remove ConfigurationCacheService from AuthorizationProvider #12064)Verifying this change
I reviewed the git history and made sure the project compiles.
Does this pull request potentially affect one of the following parts:
This is technically a breaking change. I will send an email to the mailing list.
Documentation
doc-not-neededWe allow the
AuthorizationProviderinterface itself to be the documentation, so I do not see any need to update docs.Matching PR in forked repository
Since I already tested the compilation of the project, I see no reason to build in my own fork.