-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Maps] Add maps telemetry saved object in with mappings disabled (#69995
) Co-authored-by: Rudolf Meijering <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
82fd107
commit 3caab36
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
x-pack/plugins/maps/server/saved_objects/maps_telemetry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
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: { | ||
// @ts-ignore Core types don't support this since it's only really valid when removing a previously registered type | ||
type: 'object', | ||
enabled: false, | ||
}, | ||
}; |