Skip to content

Commit

Permalink
Makes fetcherTask synchronous, moves ui settings migrations code owne…
Browse files Browse the repository at this point in the history
…r comment to migrated settings
  • Loading branch information
TinaHeiligers committed Oct 15, 2021
1 parent f6816fd commit 7852509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/server/ui_settings/saved_objects/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export const migrations = {
'8.0.0': (doc: SavedObjectUnsanitizedDoc<any>): SavedObjectSanitizedDoc<any> => ({
...doc,
...(doc.attributes && {
// owner: Team:Geo
attributes: Object.keys(doc.attributes).reduce(
(acc, key) =>
[
// owner: Team:Geo
'visualization:regionmap:showWarnings',
'visualization:tileMap:WMSdefaults',
'visualization:tileMap:maxPrecision',
Expand Down
4 changes: 1 addition & 3 deletions src/plugins/telemetry/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ export class TelemetryPlugin implements Plugin<TelemetryPluginSetup, TelemetryPl
const { savedObjects } = core;
const savedObjectsInternalRepository = savedObjects.createInternalRepository();
this.savedObjectsClient = savedObjectsInternalRepository;

// Not catching nor awaiting this promise because it should never reject
this.startFetcher(core, telemetryCollectionManager);

return {
Expand All @@ -151,7 +149,7 @@ export class TelemetryPlugin implements Plugin<TelemetryPluginSetup, TelemetryPl
};
}

private async startFetcher(
private startFetcher(
core: CoreStart,
telemetryCollectionManager: TelemetryCollectionManagerPluginStart
) {
Expand Down

0 comments on commit 7852509

Please sign in to comment.