-
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
Removes deprecated telemetry.url and telemetry.optInStatusUrl from telemetry plugin config #114737
Removes deprecated telemetry.url and telemetry.optInStatusUrl from telemetry plugin config #114737
Conversation
…lemetry plugin config
/** | ||
* config options opt into telemetry | ||
*/ | ||
export const CONFIG_TELEMETRY = 'telemetry:optIn'; |
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.
No longer supported.
* config description for opting into telemetry | ||
*/ | ||
export const getConfigTelemetryDesc = () => { | ||
// Can't find where it's used but copying it over from the legacy code just in case... |
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 the comment says, the translation doesn't seem to be used anywhere.
this.handleOldUiSettings(uiSettings); | ||
this.startFetcherWhenOldSettingsAreHandled(core, telemetryCollectionManager); | ||
// Not catching nor awaiting this promise because it should never reject | ||
this.startFetcher(core, telemetryCollectionManager); |
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.
Not strictly needed but we're removing handling the old settings and the old name didn't make sense anymore.
core: CoreStart, | ||
telemetryCollectionManager: TelemetryCollectionManagerPluginStart | ||
) { | ||
await this.oldUiSettingsHandled$.pipe(take(1)).toPromise(); // Wait for the old settings to be handled | ||
// We start the fetcher having updated everything we need to using the config settings |
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.
Not strictly needed but the wording wouldn't have made sense anymore.
@@ -42,7 +42,6 @@ export default async function ({ readConfigFile }) { | |||
defaults: { | |||
'accessibility:disableAnimations': true, | |||
'dateFormat:tz': 'UTC', | |||
'telemetry:optIn': false, |
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.
removed support for uiSetting
@elasticmachine merge upstream |
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.
Self review again.
src/core/server/saved_objects/migrationsv2/integration_tests/batch_size_bytes.test.ts
Show resolved
Hide resolved
Pinging @elastic/kibana-core (Team:Core) |
@elasticmachine merge upstream |
src/core/server/saved_objects/migrationsv2/integration_tests/batch_size_bytes.test.ts
Show resolved
Hide resolved
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. this is great! Thanks.
This reduces the plugin start
time considerably!
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.
Left a small comment, but otherwise LGTM
src/core/server/saved_objects/migrationsv2/integration_tests/batch_size_bytes.test.ts
Show resolved
Hide resolved
💚 Build SucceededMetrics [docs]Page load bundle
History
To update your PR or re-run it, just comment with: |
Telemetry urls configured via
uiSettings
were deprecated in favor of atelemetry.sendUsageTo
config setting in #107396.We were also still supporting old configurations from
uiSettings
(telemetry:optIn
andxPackMonitoring:allowReport
) in parallel with the new configuration using saved objects.This PR handles removing support for those settings from 8.0, adds to the 8.0
uiSettings
migration to removetelemetry:optIn
andxPackMonitoring:allowReport
and cleans up code related to handling legacy configurations.Resolves #82432 and cleanup task from #96761
Checklist
Delete any items that are not applicable to this PR.
For maintainers
To reviewers:
These settings are for internal use only and the breaking change isn't end-user facing, hence no release note.