JENKINS-62443 Add Full Name lookup for SIDs#59
JENKINS-62443 Add Full Name lookup for SIDs#59skundrik wants to merge 3 commits intojenkinsci:masterfrom
Conversation
| StringBuilder sb = new StringBuilder(); | ||
| for (String sid: new TreeSet<>(sids)) { | ||
| try { | ||
| sr.loadUserByUsername(sid); |
There was a problem hiding this comment.
For a large number of sids this looks like it can be potentially very slow (if it requires and LDAP lookup). Which IIUC will block the page from loading.
There was a problem hiding this comment.
+1. Also, this logi will lead to exceptions when handling group membership SIDs
|
I don’t think you need to keep the ID just show the full name of its set, have a look at what it looks like when you use the matrix authorization strategy from the matrix-auth plugin |
Relevant code from matrix-auth (shouldn't be blindly copied, likely lots of legacy there): |
RoleStrategy uses the same method from |
Sure, it makes more sense. I guess I'll have to find something else to work on in the mean time. |
I was wondering about that myself but It might be useful to have some reference to the actual SID in case you have identical full names. |
best to be consistent here I think, it saves space and looks nicer, |
A simple fix to add full name for SID. It looks like this
