Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.11] Allow UserProfileSettingsClient to be created on Security Plug…
…in Setup (#170172) (#170429) # Backport This will backport the following commits from `main` to `8.11`: - [Allow UserProfileSettingsClient to be created on Security Plugin Setup (#170172)](#170172) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kurt","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-02T14:51:43Z","message":"Allow UserProfileSettingsClient to be created on Security Plugin Setup (#170172)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/155949\r\n\r\nThe Security Plugin provides a UserProfileSettings client to the core\r\nUserSettingsService on Setup.\r\n\r\nWith the first implementation of Dark Mode, the client was not set until\r\nthe security UserSettingService was started, which violates the\r\nsetup/start contract best practices.\r\n\r\nNow the client is provided during security plugin setup and the security\r\nUserSettingService will be set on start.\r\n\r\n## Testing\r\n\r\nDark Mode should still work as it did before:\r\n\r\n- Login as elastic\r\n- Navigate to User Profile by clicking the Avatar menu > Edit Profile\r\n- Choose Dark Mode, Save, and Refresh\r\n\r\n- Bonus test: double check Adv. Settings Dark Mode vs User Profiles Dark\r\nMode","sha":"195ef3dc2bd08fad54a0ea8278abffb4f39d39bc","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Security","release_note:skip","Feature:Security/User Profile","v8.12.0","v8.11.1"],"number":170172,"url":"https://github.com/elastic/kibana/pull/170172","mergeCommit":{"message":"Allow UserProfileSettingsClient to be created on Security Plugin Setup (#170172)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/155949\r\n\r\nThe Security Plugin provides a UserProfileSettings client to the core\r\nUserSettingsService on Setup.\r\n\r\nWith the first implementation of Dark Mode, the client was not set until\r\nthe security UserSettingService was started, which violates the\r\nsetup/start contract best practices.\r\n\r\nNow the client is provided during security plugin setup and the security\r\nUserSettingService will be set on start.\r\n\r\n## Testing\r\n\r\nDark Mode should still work as it did before:\r\n\r\n- Login as elastic\r\n- Navigate to User Profile by clicking the Avatar menu > Edit Profile\r\n- Choose Dark Mode, Save, and Refresh\r\n\r\n- Bonus test: double check Adv. Settings Dark Mode vs User Profiles Dark\r\nMode","sha":"195ef3dc2bd08fad54a0ea8278abffb4f39d39bc"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/170172","number":170172,"mergeCommit":{"message":"Allow UserProfileSettingsClient to be created on Security Plugin Setup (#170172)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/155949\r\n\r\nThe Security Plugin provides a UserProfileSettings client to the core\r\nUserSettingsService on Setup.\r\n\r\nWith the first implementation of Dark Mode, the client was not set until\r\nthe security UserSettingService was started, which violates the\r\nsetup/start contract best practices.\r\n\r\nNow the client is provided during security plugin setup and the security\r\nUserSettingService will be set on start.\r\n\r\n## Testing\r\n\r\nDark Mode should still work as it did before:\r\n\r\n- Login as elastic\r\n- Navigate to User Profile by clicking the Avatar menu > Edit Profile\r\n- Choose Dark Mode, Save, and Refresh\r\n\r\n- Bonus test: double check Adv. Settings Dark Mode vs User Profiles Dark\r\nMode","sha":"195ef3dc2bd08fad54a0ea8278abffb4f39d39bc"}},{"branch":"8.11","label":"v8.11.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kurt <[email protected]>
- Loading branch information