There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-95a88b27-2d66-4559-87e8-c789b159285e XWIKI-22141 Open

Add the possibility to distinguish different accounts of the same user on the UI

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-1f226ccc-9d61-4116-8da3-7c3c0e7eb068 Marius Dumitru Florea on 14/Jun/24 12:39
 

My understanding is that we could simply change this code to load a format from some configuration property if no format is provided and the configuration is set (the code to parse a Velocity format string is already there). This might have a performance impact, though, so I wouldn't suggest to have a default format specifier and we could look into at least caching the compiled Velocity code.

Michael Hamann I don't think we should do that. We already have the configuration we need. That is user.display.qualifierProperty. If you need more control over the qualifier you can add a computed property to the user profile class and indicate this new property as qualifier.

 
cid:jira-generated-image-avatar-1f226ccc-9d61-4116-8da3-7c3c0e7eb068 Marius Dumitru Florea on 14/Jun/24 12:39
 
Yes, we should make the user displayer take into account the `` {{ user.display.qualifierProperty `` }} configuration. But we need to be aware that the user alias is not a user profile property so currently you'd have to add a computed property to the user profile, that displays the user alias, if you want to show the user alias as a qualifier.