-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix: expand privilege group when list policy in rootcoord #38758
Conversation
237fbcf
to
f80eefb
Compare
adc03e8
to
bf31aed
Compare
@shaoting-huang go-sdk check failed, comment |
@shaoting-huang cpp-unit-test check failed, comment |
bf31aed
to
b15ec65
Compare
@shaoting-huang cpp-unit-test check failed, comment |
internal/rootcoord/root_coord.go
Outdated
// expand privilege groups and turn to policies | ||
allGroups, err := c.getPrivilegeGroups(ctx) | ||
if err != nil { | ||
return nil, err |
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.
According to the code above, the error is supposed to be returned by a wrapped response. Is it safe to return a nil response here?
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.
fixed
Signed-off-by: shaoting-huang <[email protected]>
b15ec65
to
1acc740
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: shaoting-huang, tedxu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #38758 +/- ##
==========================================
- Coverage 81.08% 79.02% -2.06%
==========================================
Files 1381 1373 -8
Lines 195289 194075 -1214
==========================================
- Hits 158345 153370 -4975
- Misses 31354 35150 +3796
+ Partials 5590 5555 -35
|
cherry-pick from: #38758 related: #38757 Signed-off-by: shaoting-huang <[email protected]>
cherry-pick from: #38758 related: #38757 Signed-off-by: shaoting-huang <[email protected]>
related: #38757