[cleanup][broker] Pass subName to authz provider on unsubscribe - #19176
Merged
michaeljmarshall merged 1 commit intoJan 11, 2023
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19176 +/- ##
============================================
+ Coverage 47.45% 47.57% +0.11%
+ Complexity 10760 9556 -1204
============================================
Files 713 633 -80
Lines 69672 59898 -9774
Branches 7482 6239 -1243
============================================
- Hits 33063 28496 -4567
+ Misses 32895 28286 -4609
+ Partials 3714 3116 -598
Flags with carried forward coverage won't be shown. Click here to find out more.
|
mattisonchao
approved these changes
Jan 11, 2023
mattisonchao
left a comment
Member
There was a problem hiding this comment.
Please add a test for this change. :)
nodece
approved these changes
Jan 11, 2023
2 tasks
Member
Author
|
@mattisonchao - I am working on a more general test to cover more cases. Before that, I am doing some cleanup of the authorization code base. I created an issue to improve the tests in a generic way: #19183. |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
In #15347, there is a regression where the
subNameneeded to be passed to the authorization provider. That PR is not released, so this PR is just cleanupModifications
subNameforvalidateTopicOperationAsyncinPersistentTopicsBase#internalDeleteSubscriptionForNonPartitionedTopicAsyncVerifying this change
We should add testing to this part of the code base to prevent future regressions.
Does this pull request potentially affect one of the following parts:
This is not a breaking change.
Documentation
doc-not-needed