Skip to content

Commit

Permalink
Setting displayname for alerting sos (#114916) (#115036)
Browse files Browse the repository at this point in the history
Co-authored-by: ymao1 <[email protected]>
  • Loading branch information
kibanamachine and ymao1 authored Oct 14, 2021
1 parent 9460831 commit 1479369
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/actions/server/saved_objects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export function setupSavedObjects(
mappings: mappings.action as SavedObjectsTypeMappingDefinition,
migrations: getActionsMigrations(encryptedSavedObjects),
management: {
displayName: 'connector',
defaultSearchField: 'name',
importableAndExportable: true,
getTitle(savedObject: SavedObject<RawAction>) {
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/alerting/server/saved_objects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export function setupSavedObjects(
migrations: getMigrations(encryptedSavedObjects, isPreconfigured),
mappings: mappings.alert as SavedObjectsTypeMappingDefinition,
management: {
displayName: 'rule',
importableAndExportable: true,
getTitle(ruleSavedObject: SavedObject<RawAlert>) {
return `Rule: [${ruleSavedObject.attributes.name}]`;
Expand Down

0 comments on commit 1479369

Please sign in to comment.