-
Notifications
You must be signed in to change notification settings - Fork 2.1k
refactor: replace isAdmin implementation
#41171
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
Conversation
isAdmin implementation
|
Various unit tests failed.
|
|
Acceptance tests are all passing now, so external behavior is the same as before - good. The unit test just needs some adjustment - I will have a look. |
jvillafanez
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.
Tiny optional change.
|
|
thanks for your help! @phil-davis @jvillafanez |

Description
Replace the
isAdminimplementationRelated Issue
Motivation and Context
Currently, the
isAdminmethod is indirectly calling thegetUserIdGroupswhich - in case an LDAP connection is configured - would require to hit the LDAP server. For this particular check, getting the admin group and listing the members should be preferable and would not have the disadvantages related to an unstable LDAP connection (it was i.e. observed that under certain circumstances the metrics app got disabled in case the LDAP server could not be reached)How Has This Been Tested?
Issue with the metrics app was not reproducible when intentionally causing an LDAP
BindFailedExceptionTypes of changes
Checklist: