mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[ResponseOps][Rules] Remove invalid rule type warnings (#204366)
## Summary Fixes https://github.com/elastic/kibana/issues/204101
This commit is contained in:
parent
d28ed76b97
commit
4ae8b67494
1 changed files with 1 additions and 7 deletions
|
@ -64,7 +64,7 @@ export const ruleRegistrySearchStrategyProvider = (
|
|||
|
||||
const registeredRuleTypes = alerting.listTypes();
|
||||
|
||||
const [validRuleTypeIds, invalidRuleTypeIds] = partition(request.ruleTypeIds, (ruleTypeId) =>
|
||||
const [validRuleTypeIds, _] = partition(request.ruleTypeIds, (ruleTypeId) =>
|
||||
registeredRuleTypes.has(ruleTypeId)
|
||||
);
|
||||
|
||||
|
@ -75,12 +75,6 @@ export const ruleRegistrySearchStrategyProvider = (
|
|||
);
|
||||
}
|
||||
|
||||
invalidRuleTypeIds.forEach((ruleTypeId) => {
|
||||
logger.warn(
|
||||
`Found invalid rule type '${ruleTypeId}' while using ${RULE_SEARCH_STRATEGY_NAME} search strategy. No alert data from this rule type will be searched.`
|
||||
);
|
||||
});
|
||||
|
||||
const securityAuditLogger = security?.audit.asScoped(deps.request);
|
||||
const getActiveSpace = async () => spaces?.spacesService.getActiveSpace(deps.request);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue