-
Notifications
You must be signed in to change notification settings - Fork 448
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
feature: nickname field added #7185
base: master
Are you sure you want to change the base?
Conversation
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.
I would like to understand why we can do it via custom fields
If we want to add a db field I'm ok with it but we need to regen the orm and do a few more things
I will study the issue of custom fields and will definitely come back |
@DawoudIO This is your project, but I disagree with the idea of custom/dynamic properties, especially for common fields. In general, dynamic columns in SQL is generally a bad idea for these reasons:
|
I'm inclined to agree with @DawoudIO on this one; a "nickname" field (or any other arbitrary attribute) can be added by the admin via leveraging custom fields, without us needing to make code changes. Sure, dynamic database stuff introduces some complexity with schema changes (as @DAcodedBEAT pointed out) but I believe this is the lesser of the two evils. Historically, when support requests have come through for random fields to be added to person/family pages the discussion is usually that whatever the requested attribute is, represents a corner case very few people would actually want or need it. In which case, the custom field feature still allows the admin to create whatever they like and the world keeps spinning. The next phase of the discussion inevitably centres around being able to "hide" arbitrary fields that admins may not want to see. Deleting them isn't really an option because they are part of the schema etc, but we could simply hide them from the UI. However the current code base has no way to do this (yet) although it would be an interesting project. Personally, I have no use for a "nickname" field, and would loath having to look at another empty field on an already busy page. My $0.02 worth 👍🏻 |
@MrClever I see your point about avoiding clutter, but:
As a base user property, this would provide consistency across deployments and improve personalization for users who prefer being addressed informally, while keeping it optional for those who don’t need it. It simplifies maintenance by avoiding custom fields and gives flexibility to scale with user needs in the future. |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Description & Issue number it closes
Nickname field added.
#6651
Screenshots (if appropriate)
How to test the changes?
Visual inspection.
Type of change
How Has This Been Tested?
Visual inspection. Creating, editing person. Adding nickname.