From 3195681657ce0f5731ef84d920a45a114852eea0 Mon Sep 17 00:00:00 2001 From: nreese Date: Mon, 13 Feb 2023 12:56:18 -0700 Subject: [PATCH 1/2] [maps] include vector layers in geoShapeAggLayersCount telemetry --- .../index_pattern_stats/index_pattern_stats_collector.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts b/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts index dcbc9c884275d..365513da6ebdc 100644 --- a/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts +++ b/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts @@ -107,14 +107,6 @@ export class IndexPatternStatsCollector { return false; } - if ( - layer.type !== LAYER_TYPE.GEOJSON_VECTOR && - layer.type !== LAYER_TYPE.BLENDED_VECTOR && - layer.type !== LAYER_TYPE.HEATMAP - ) { - return false; - } - const sourceDescriptor = layer.sourceDescriptor; if (sourceDescriptor.type === SOURCE_TYPES.ES_GEO_GRID) { return await this._isFieldGeoShape( From c76a7fa54e2ca83e6d39186f23bde7be2f8a2e8d Mon Sep 17 00:00:00 2001 From: nreese Date: Mon, 13 Feb 2023 13:16:07 -0700 Subject: [PATCH 2/2] fix import --- .../index_pattern_stats/index_pattern_stats_collector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts b/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts index 365513da6ebdc..2b8047cdaf41f 100644 --- a/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts +++ b/x-pack/plugins/maps/server/maps_telemetry/index_pattern_stats/index_pattern_stats_collector.ts @@ -9,7 +9,7 @@ import type { SavedObject } from '@kbn/core/server'; import { asyncForEach } from '@kbn/std'; import { KBN_FIELD_TYPES } from '@kbn/field-types'; import { DataViewsService } from '@kbn/data-views-plugin/common'; -import { LAYER_TYPE, SCALING_TYPES, SOURCE_TYPES } from '../../../common/constants'; +import { SCALING_TYPES, SOURCE_TYPES } from '../../../common/constants'; import { injectReferences } from '../../../common/migrations/references'; import { ESGeoGridSourceDescriptor,