Skip to content

Commit

Permalink
Change mappings to type object with 'enabled: false'
Browse files Browse the repository at this point in the history
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
  • Loading branch information
kindsun and rudolf authored Jun 26, 2020
1 parent bca48e9 commit 8540f53
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions x-pack/plugins/maps/server/saved_objects/maps_telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
*/
import { SavedObjectsType } from 'src/core/server';

/*
* The maps-telemetry saved object type isn't used, but in order to remove these fields from
* the mappings we register this type with `type: 'object', enabled: true` to remove all
* previous fields from the mappings until https://github.com/elastic/kibana/issues/67086 is
* solved.
*/
export const mapsTelemetrySavedObjects: SavedObjectsType = {
name: 'maps-telemetry',
hidden: false,
namespaceType: 'agnostic',
mappings: {
properties: {
settings: { type: 'object', index: false },
indexPatternsWithGeoFieldCount: { type: 'long', index: false },
indexPatternsWithGeoPointFieldCount: { type: 'long', index: false },
indexPatternsWithGeoShapeFieldCount: { type: 'long', index: false },
mapsTotalCount: { type: 'long', index: false },
timeCaptured: { type: 'date', index: false },
attributesPerMap: { type: 'object', index: false },
},
// @ts-ignore Core types don't support this since it's only really valid when removing a previously registered type
type: 'object',
enabled: false,
},
};

0 comments on commit 8540f53

Please sign in to comment.