[Metrics UI] Threshold alert redundant groupBy throws a false positive on OR matches #116195
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Metrics UI
Metrics UI feature
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
This shouldn't happen. The user should only be seeing this warning for something like
host.name: host-1
.We can fix this by changing the redundant groupBy check: https://github.com/Zacqary/kibana/blob/master/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.tsx#L263-L283
to use:
and using
alertParams.filterQuery.match(pattern).length === 1
instead ofpattern.test(alertParams.filterQuery)
as the boolean.The text was updated successfully, but these errors were encountered: