Skip to content

Commit

Permalink
[Security Solutions] Makes legacy actions/notification system, legacy…
Browse files Browse the repository at this point in the history
… action status, and exception lists multiple space shareable (#115427)

## Summary

See #114548

Makes the following saved objects multiple-isolated:
* siem-detection-engine-rule-status
* exception-list
* siem-detection-engine-rule-actions

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
  • Loading branch information
FrankHassanabad authored Oct 19, 2021
1 parent fd0fc77 commit e53f4d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion x-pack/plugins/lists/server/saved_objects/exception_list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,12 @@ const combinedMappings: SavedObjectsType['mappings'] = {
};

export const exceptionListType: SavedObjectsType = {
convertToMultiNamespaceTypeVersion: '8.0.0',
hidden: false,
mappings: combinedMappings,
migrations,
name: exceptionListSavedObjectType,
namespaceType: 'single',
namespaceType: 'multiple-isolated',
};

export const exceptionListAgnosticType: SavedObjectsType = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ const legacyRuleActionsSavedObjectMappings: SavedObjectsType['mappings'] = {
* @deprecated Remove this once we no longer need legacy migrations for rule actions (8.0.0)
*/
export const legacyType: SavedObjectsType = {
convertToMultiNamespaceTypeVersion: '8.0.0',
name: legacyRuleActionsSavedObjectType,
hidden: false,
namespaceType: 'single',
namespaceType: 'multiple-isolated',
mappings: legacyRuleActionsSavedObjectMappings,
migrations: legacyRuleActionsSavedObjectMigration,
};
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ export const ruleStatusSavedObjectMappings: SavedObjectsType['mappings'] = {
* @deprecated Remove this once we've fully migrated to event-log and no longer require addition status SO (8.x)
*/
export const legacyRuleStatusType: SavedObjectsType = {
convertToMultiNamespaceTypeVersion: '8.0.0',
name: legacyRuleStatusSavedObjectType,
hidden: false,
namespaceType: 'single',
namespaceType: 'multiple-isolated',
mappings: ruleStatusSavedObjectMappings,
migrations: legacyRuleStatusSavedObjectMigration,
};

0 comments on commit e53f4d2

Please sign in to comment.