-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adapt Core userSettings
service to no longer depends on the security
plugin
#181538
adapt Core userSettings
service to no longer depends on the security
plugin
#181538
Conversation
… on the `security` plugin
userSettings
to use new userProfile
serviceuserSettings
to no longer depends on the security
plugin
/ci |
userSettings
to no longer depends on the security
pluginuserSettings
service to no longer depends on the security
plugin
/ci |
…tings-service-in-core
/ci |
/ci |
/ci |
Pinging @elastic/kibana-core (Team:Core) |
export class UserSettingsService { | ||
private logger: Logger; | ||
private userProfile?: InternalUserProfileServiceStart; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, this is not a new file, it was moved from packages/core/user-settings/core-user-settings-server-internal/user_settings_service.ts
, but I guess the file changed too much so it lost the info
// keeping the empty service contract for now as we might re-use it very soon | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface UserSettingsServiceSetup {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As said in the comment: We may use the contract very soon to expose new APIs (given the per-user-settings discussions we're currently having) so I kept the contract and the public type package, to avoid having to remove everything and then re-add it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
…tings-service-in-core
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Public APIs missing exports
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
Part of #174578
Adapt Core's
userSettings
service to leverage Core'suserProfile
service instead of thesecurity
plugin