Skip to content

Commit

Permalink
[ResponseOps][Rules] Remove invalid rule type warnings (elastic#204366)
Browse files Browse the repository at this point in the history
## Summary

Fixes elastic#204101
  • Loading branch information
js-jankisalvi authored and CAWilson94 committed Jan 10, 2025
1 parent edc92da commit 1c8f86b
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);

Expand All @@ -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);

Expand Down

0 comments on commit 1c8f86b

Please sign in to comment.