-
-
Notifications
You must be signed in to change notification settings - Fork 850
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
[FR] Owner: Show User's full name instead of username #5222
Comments
Seems perfectly reasonable 🙂 |
just my 2 cents:
Especially considering 2 and the possible implication of mass leakage of student/employee names on all reports I would caution against just changing this and consider it at least breaking. |
a few more thoughts: |
What if we made it a configurable option? |
Sounds like a fine solution, not sure how that would affect response times. If the default changes for existing instances that would need a note somewhere. |
All fair points, @matmair I suspect this might perhaps be somewhat culture dependent. In this case, I was thinking in terms of display in a "responsible" box, and an opportunity to reference a full name in reports. Most specifically, order reports. A PO that is not formalised by web shop, but by email, would prompt you to generate a PO report to send to the supplier's KAM. Around here, it's then common to operate with the purchaser's government name is such a document as a reference to shipment recipient (Aka. "Attention"). Vice versa, you often give the customer a contact for a given SO too. Implementing it as an option works for me too. |
I would add a note that it is not so exceptional that there are two people with the same full (goverment) name. Wouldn't it be better to be able to generate usernames based on a full-name during the registration? Often there are some rules how to generate such username: three characters from surname, two characters from first-name and a number providing uniqueness. |
I think that the scope of this is complex enough to warrant a custom plugin interface. I would rather offload this to a plugin rather than trying to accommodate everyone's wildly varying requirements. I certainly think it is outside the purview of InvenTree to dictate how usernames are generated or users names displayed. |
So the easiest way forward seems to be either:
@LavissaWoW what do you think? Would either solution work for you and would you be intrested in developing either of them? In regards to @roman-dvorak comment: very valid - my surname is on the top 4 in my country so never helpfull. I think that username creation and user managment in general is something that can be improved a lot and deserving of its own FR/EPIC. If you have furthure inputs we could maybe start a discussion around that. |
Just as side mark, our IT creates user names like e34hktp5 which is not useful either :-) |
@SergeoLacruz I have been sch13hbt**, csaz4*** and T/98/8/**/**b so there is definitely a governance part to it but InvenTree shouldn't try to solve broken/dumb IT governance |
I'm on a longer holiday atm. I'll be back EOM August. |
Right, I see two possibilities with differing implementation requirements:
Default functionality will be how it's currently implemented. LMK what you think. |
I think option 1 sounds good. 2 might also be cool but that is an easy upgrade once 1 is done. |
This issue seems stale. Please react to show this is still important. |
Please verify that this feature request has NOT been suggested before.
Problem statement
Any Owner field tied to a user currently shows the username when printed in the GUI.
Suggested solution
By changing what value is returned based on Owner type, any "accidentally" bad usernames are filtered out of the GUI part, and only exposed to the "offending" user and admins.
I propose a very simple solution:
Return different model fields based on
owner_type
.owner.name
for Groupsowner.full_name
for UsersDescribe alternatives you've considered
Pretty much the above
Examples of other systems
No response
Do you want to develop this?
The text was updated successfully, but these errors were encountered: