Skip to content

Commit

Permalink
removed alerts migration
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Jun 18, 2020
1 parent 57ea89e commit 7c14ed2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 181 deletions.
10 changes: 3 additions & 7 deletions x-pack/plugins/alerts/server/saved_objects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

import { SavedObjectsServiceSetup } from 'kibana/server';
import mappings from './mappings.json';
import { getMigrations } from './migrations';
import { EncryptedSavedObjectsPluginSetup } from '../../../encrypted_saved_objects/server';

export function setupSavedObjects(
savedObjects: SavedObjectsServiceSetup,
encryptedSavedObjects: EncryptedSavedObjectsPluginSetup
) {
const encryptedType = {
// Encrypted attributes
encryptedSavedObjects.registerType({
type: 'alert',
attributesToEncrypt: new Set(['apiKey']),
attributesToExcludeFromAAD: new Set([
Expand All @@ -22,16 +22,12 @@ export function setupSavedObjects(
'mutedInstanceIds',
'updatedBy',
]),
};

// Encrypted attributes
encryptedSavedObjects.registerType(encryptedType);
});

savedObjects.registerType({
name: 'alert',
hidden: true,
namespaceType: 'single',
migrations: getMigrations(encryptedSavedObjects, encryptedType),
mappings: mappings.alert,
});
}
114 changes: 0 additions & 114 deletions x-pack/plugins/alerts/server/saved_objects/migrations.test.ts

This file was deleted.

60 changes: 0 additions & 60 deletions x-pack/plugins/alerts/server/saved_objects/migrations.ts

This file was deleted.

0 comments on commit 7c14ed2

Please sign in to comment.