From 76c313a15f4a5b555a62c001f32fc7c74914019f Mon Sep 17 00:00:00 2001 From: Ying Mao Date: Wed, 13 Oct 2021 16:57:39 -0400 Subject: [PATCH] Setting displayname for alerting sos --- x-pack/plugins/actions/server/saved_objects/index.ts | 1 + x-pack/plugins/alerting/server/saved_objects/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/x-pack/plugins/actions/server/saved_objects/index.ts b/x-pack/plugins/actions/server/saved_objects/index.ts index 14b425d20af13..c3598df809bcf 100644 --- a/x-pack/plugins/actions/server/saved_objects/index.ts +++ b/x-pack/plugins/actions/server/saved_objects/index.ts @@ -40,6 +40,7 @@ export function setupSavedObjects( mappings: mappings.action as SavedObjectsTypeMappingDefinition, migrations: getActionsMigrations(encryptedSavedObjects), management: { + displayName: 'connector', defaultSearchField: 'name', importableAndExportable: true, getTitle(savedObject: SavedObject) { diff --git a/x-pack/plugins/alerting/server/saved_objects/index.ts b/x-pack/plugins/alerting/server/saved_objects/index.ts index f1afba147a2f7..eb561b3c285f8 100644 --- a/x-pack/plugins/alerting/server/saved_objects/index.ts +++ b/x-pack/plugins/alerting/server/saved_objects/index.ts @@ -58,6 +58,7 @@ export function setupSavedObjects( migrations: getMigrations(encryptedSavedObjects, isPreconfigured), mappings: mappings.alert as SavedObjectsTypeMappingDefinition, management: { + displayName: 'rule', importableAndExportable: true, getTitle(ruleSavedObject: SavedObject) { return `Rule: [${ruleSavedObject.attributes.name}]`;