mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Security Solutions] Makes legacy actions/notification system, legacy action status, and exception lists multiple space shareable (#115427)
## Summary See https://github.com/elastic/kibana/issues/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
This commit is contained in:
parent
fd0fc77062
commit
e53f4d2f28
3 changed files with 6 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue