Skip to content

Commit

Permalink
[Maps] Remove maps-telemetry saved object as it is no longer in use (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell authored Jun 25, 2020
1 parent 68cf857 commit 40c746e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 53 deletions.
1 change: 0 additions & 1 deletion x-pack/plugins/maps/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export const EMS_TILES_VECTOR_TILE_PATH = 'vector/tile';
export const MAP_SAVED_OBJECT_TYPE = 'map';
export const APP_ID = 'maps';
export const APP_ICON = 'gisApp';
export const TELEMETRY_TYPE = APP_ID;

export const MAP_APP_PATH = `app/${APP_ID}`;
export const GIS_API_PATH = `api/${APP_ID}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

import { UsageCollectionSetup } from 'src/plugins/usage_collection/server';
import { getMapsTelemetry } from '../maps_telemetry';
// @ts-ignore
import { TELEMETRY_TYPE } from '../../../common/constants';
import { MapsConfigType } from '../../../config';

export function registerMapsUsageCollector(
Expand All @@ -19,7 +17,7 @@ export function registerMapsUsageCollector(
}

const mapsUsageCollector = usageCollection.makeUsageCollector({
type: TELEMETRY_TYPE,
type: 'maps',
isReady: () => true,
fetch: async () => await getMapsTelemetry(config),
});
Expand Down
3 changes: 1 addition & 2 deletions x-pack/plugins/maps/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { getFlightsSavedObjects } from './sample_data/flights_saved_objects.js';
import { getWebLogsSavedObjects } from './sample_data/web_logs_saved_objects.js';
import { registerMapsUsageCollector } from './maps_telemetry/collectors/register';
import { APP_ID, APP_ICON, MAP_SAVED_OBJECT_TYPE, createMapPath } from '../common/constants';
import { mapSavedObjects, mapsTelemetrySavedObjects } from './saved_objects';
import { mapSavedObjects } from './saved_objects';
import { MapsXPackConfig } from '../config';
// @ts-ignore
import { setInternalRepository } from './kibana_server_services';
Expand Down Expand Up @@ -191,7 +191,6 @@ export class MapsPlugin implements Plugin {
},
});

core.savedObjects.registerType(mapsTelemetrySavedObjects);
core.savedObjects.registerType(mapSavedObjects);
registerMapsUsageCollector(usageCollection, currentConfig);

Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/maps/server/saved_objects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
export { mapsTelemetrySavedObjects } from './maps_telemetry';
export { mapSavedObjects } from './map';
46 changes: 0 additions & 46 deletions x-pack/plugins/maps/server/saved_objects/maps_telemetry.ts

This file was deleted.

0 comments on commit 40c746e

Please sign in to comment.