-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Migrate /api/settings to KP #77554
Migrate /api/settings to KP #77554
Conversation
Pinging @elastic/kibana-platform (Team:Platform) |
💚 Build SucceededBuild metricsdistributable file count
History
To update your PR or re-run it, just comment with: |
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
interface EmailSettingData { | ||
xpack: { default_admin_email: string | null }; | ||
} | ||
|
||
export interface KibanaSettingsCollector extends Collector<EmailSettingData | undefined> { | ||
getEmailValueStructure(email: string | null): EmailSettingData; | ||
} | ||
|
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.
Be careful when backporting this, there is a difference between master
and 7.x
in the getEmailValueStructure
implementation (the PR does not impact this so it should be fine, but just saying)
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! Tested it with MB monitoring and works great
# Conflicts: # docs/developer/plugin-list.asciidoc # x-pack/plugins/monitoring/server/kibana_monitoring/collectors/get_settings_collector.ts # x-pack/plugins/xpack_legacy/kibana.json # x-pack/plugins/xpack_legacy/server/plugin.ts
* Migrate /api/settings to KP (#77554) # Conflicts: # docs/developer/plugin-list.asciidoc # x-pack/plugins/monitoring/server/kibana_monitoring/collectors/get_settings_collector.ts # x-pack/plugins/xpack_legacy/kibana.json # x-pack/plugins/xpack_legacy/server/plugin.ts * Fix lint Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
Closes #76416
This migrates the
/api/settings
endpoint from the legacy xpack_main plugin to the xpack_legacy plugin. This plugin can be deleted once Beats is no longer using this (in 8.0).Much of this PR is similar to #76054
Checklist