View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004226 | mantisbt | ui | public | 2004-07-30 16:16 | 2018-03-06 00:26 |
Reporter | thraxisp | Assigned To | vboctor | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | git trunk | ||||
Target Version | 2.12.0 | Fixed in Version | 2.12.0 | ||
Summary | 0004226: Provide a way to disambiguate duplicate realnames | ||||
Description | Two realnames can be the same. There is no easy way to differentiate them. | ||||
Additional Information | The patch checked in for 0003975 has additional code to check for duplicates and set a flag in the user's database entry to allow them to be displayed differently. It is controlled by the config variable "differentiate_duplicates". We need to consider how this works with LDAP before a final commit. | ||||
Tags | No tags attached. | ||||
Glenn, Can this be resolved? Paul |
|
It's still open. The code is in place, but not active. We need to create a database upgrade to populate the database properly. |
|
Is this still an issue? I've recently fixed 0008343 which may be related to this issue. |
|
It's still open. The feature is to allow us to differentiate users with the same real name, but different user names. They are displayed as "John Doe(jdoe)" and "John Doe(sneezy)". The installer needs code to find all duplicate usernames and set a flag in the database. Should I add this for 1.1? |
|
Why set a flag? Why don't we change the duplicate names to have the user name and update the code to stop any future duplicate names. This will avoid extra overhead in constructing list of user names. And in the future will keep user names shorter. I think we should aim to have the union of user names and user real names have no duplicates. If we go with this fix, then we can include it in 1.1.0rc1. |
|
We can't do this. This would imply that the second "John Doe" to sign up can't use their real name. I agree that usernames should be unique, but real names don't have to be. The real name can also match the user name for an individual. Adding the flag eliminates any overhead as the flag is in the same query as the username/real name. |
|
Glenn? :) Paul |
|
All that is required to complete this is to add the database update: $upgrade[] = Array( 'AddColumnSQL', Array( db_get_table( 'mantis_user_table' ), " I would do this except someone commented out the rest of the related code. |
|
The uniqueness is enforced via: |
|
The following PR was revised to allow duplicate real names or real names that are duplicate with a username: To disambiguate duplicates, usernames are now displayed as:
The code was refactored to always use central APIs for printing and sorting of user names. The sorting respects the configuration option to sort by last name when enabled. |
|