mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
* Add firstName and lastName fields to UserImpl # Conflicts: # graylog2-server/src/test/java/org/graylog2/rest/resources/users/UsersResourceTest.java * Add unified setter for fullName, firstName, and lastName with tests * Support for first and last name in most usages Includes the ProvisionerService, UsersResource, and MigrationHelpers Missing support in the AD Auth provider # Conflicts: # graylog2-server/src/test/java/org/graylog2/rest/resources/users/UsersResourceTest.java * Fix failing test * Add support for firstName and lastName in list and view objects * Optional names in User Summary * Consistent annotation order * Fix validation message to match json prop * Add first and last name form group - update edit and create form to use new fields - remove full_name field * Update test and fixtures * Support Full Name still for LDAP and AD sources * Fix failing test * Fix test * Add className prop to support Styled component * Add migration info message to edit page * Add appropriate handling for names in ProvisionerService with tests * Basic ProvisionerService tests covering First/Last/Full Name * Cleanup * Add license header * Fix Forbidden API checks * Fix Forbidden API checks (another attempt) * Fix review comments * Show first and last name in success notification * Fix MongoDB user login error * Use correct format * Intentionally do not support fullname ensureUser method * Add pre-persistence validation on save of User * Cleanup * Deprecate setFullName method * Cleanup from discussion - Remove unneeded validation for first and last name. Also, don't require a full name, since that was not required before. - Return optionals for first and last name getters. - Return empty string for full name. * Cleanup from PR feedback - Use block for ProvisionService name setting. - Correct full/fist/last name lengths. Co-authored-by: Ousmane Samba <ousmane@graylog.com> Co-authored-by: Edmundo Alvarez <edmundo@graylog.com>