Mattermost-server: Mattermost user nickname input should allow maximum of 64 characters instead of 22

Created on 22 Jan 2020  路  5Comments  路  Source: mattermost/mattermost-server

Summary

Screenshot 2020-01-22 at 3 11 47 PM

In https://github.com/mattermost/mattermost-server/pull/3186, maxlength of 22 characters was added to the webapp nickname input element, but since nickname field in database schema is 64 character long (checked on both mysql and postgresql, it should be 64 instead of 22 characters.

Extra information

(this shouldn't matter, but I include this info for completeness)

  • Mattermost Version: 5.19.0
  • Database Schema Version: 5.19.0
  • Database: mysql

Possible fixes

Change this constant value to 64.

Bug ReporOpen

Most helpful comment

@kenrick95 Responses from our team:

  • The 22 character limit is to ensure the Nickname displays without truncating (based on casing or language) in the LHS.
  • Database length was changed to be higher for things like nicknames because it needs to accommodate LDAP sync.
  • The team feels that making the decision on the length of the field should be based more on the UX than the current length of the database field so long as the length is less than or equal to the database field (easier to change front end limit than database field lengths).

Does this help?

All 5 comments

@kenrick95 Responses from our team:

  • The 22 character limit is to ensure the Nickname displays without truncating (based on casing or language) in the LHS.
  • Database length was changed to be higher for things like nicknames because it needs to accommodate LDAP sync.
  • The team feels that making the decision on the length of the field should be based more on the UX than the current length of the database field so long as the length is less than or equal to the database field (easier to change front end limit than database field lengths).

Does this help?

I see, but even then, having a 22-character nickname usually already entails that the display will be truncated in the LHS sidebar

Screenshot 2020-01-23 at 9 53 02 AM

A real use case that I faced in my company is that we often utilize this nickname field to indicate our out-of-office period. While using nickname field is not ideal, this is what we're currently have and some people who knows this 22-character limit that are only imposed on the front-end will remove the "maxchar" attribute so we can save more texts in it.

Screenshot 2019-08-16 at 2 11 25 PM

Screenshot 2020-01-23 at 9 59 08 AM

I understand that this "feature request" may not made it to the mattermost core as it may have big UX impact to the users. Hence, feel free to close this issue.

Thanks a lot!

@kenrick95 I see, an additional option that may help with communicating out-of-office times:

  • Enable Automatic Replies which will notify other users that the person is off if they try to message the user.

We are also planning for a feature that enables adding a custom status: https://mattermost.uservoice.com/forums/306457-general/suggestions/17728987-status-labels.

That feature request on user voice is exactly what is needed instead of "hacking" the nickname field. Thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings