From 8406e854aa912f3d7f9179b10356444f07e25223 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Wed, 14 Dec 2016 11:11:51 +0000 Subject: PLT-4332 Position field for Users (#4632) * Add User.Position field to store & model. * GOFMT * Add Position to user settings. * Unit tests. * Add position to profile popup. * i18n * Fix log message for invalid position. * Add Position field attribute to LDAP config. * Add Position field attribute to SAML config. * Reword empty position message. * Change Position Max Length to 35. * Better invalid position error message. * Add new fields to config.json. * Ensure position is never longer than max when displayed. * Hard limit of 64 chars with soft limit still 35 * Put field with other attributes. --- webapp/utils/constants.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'webapp/utils') diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx index 1eac2732b..94fa19ea9 100644 --- a/webapp/utils/constants.jsx +++ b/webapp/utils/constants.jsx @@ -264,7 +264,8 @@ export const Constants = { FULLNAME: 'fullname', NICKNAME: 'nickname', EMAIL: 'email', - LANGUAGE: 'language' + LANGUAGE: 'language', + POSITION: 'position' }, ScrollTypes: { @@ -835,6 +836,7 @@ export const Constants = { MAX_NICKNAME_LENGTH: 22, MIN_PASSWORD_LENGTH: 5, MAX_PASSWORD_LENGTH: 64, + MAX_POSITION_LENGTH: 35, MIN_TRIGGER_LENGTH: 1, MAX_TRIGGER_LENGTH: 128, MAX_TEXTSETTING_LENGTH: 1024, -- cgit v1.2.3-1-g7c22