Skip to content

Commit

Permalink
Fixes alerting passthrough so routes relying on alerting client function
Browse files Browse the repository at this point in the history
  • Loading branch information
spong committed Apr 9, 2021
1 parent a300ad1 commit 1ab31aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/security_solution/kibana.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"configPath": ["xpack", "securitySolution"],
"requiredPlugins": [
"actions",
"alerting",
"ruleRegistry",
"data",
"dataEnhanced",
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/security_solution/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
...pickWithPatterns(ecsFieldMap, 'host.name', 'service.name'),
},
});
// Temporarily exposing alerting client from rule-registry to allow registering of legacy rules
this.setupPlugins.alerting = this.setupPlugins.ruleRegistry.alertingPluginSetupContract;

// Register reference rule types via rule-registry
this.setupPlugins.ruleRegistry.registerType(referenceRuleAlertType);
Expand Down

0 comments on commit 1ab31aa

Please sign in to comment.