Files
graylog2-server/graylog2-web-interface/test
Dan Torrey 56ac2836e4 Add First and Last Name to Graylog User object (#10074)
* 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>
2021-02-25 07:38:36 +01:00
..
2020-11-17 11:58:56 +01:00
2020-11-26 14:35:20 +01:00