Skip to content

Commit f1361a8

Browse files
authored
fix(alerts): Check config to skip incompatible metrics alert (#56383)
Missed a codepath when applying the #56343 fix, this just covers the same check for the `else` condition Fixes SENTRY-15Z5
1 parent bbe5071 commit f1361a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sentry/search/events/builder/metrics.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,10 @@ def default_filter_converter(self, search_filter: SearchFilter) -> Optional[Wher
525525
value = resolved_value
526526
else:
527527
resolved_item = self.resolve_tag_value(value)
528-
if resolved_item is None:
528+
if (
529+
resolved_item is None
530+
and not self.builder_config.skip_field_validation_for_entity_subscription_deletion
531+
):
529532
raise IncompatibleMetricsQuery(f"{name} value {value} in filter not found")
530533
value = resolved_item
531534

0 commit comments

Comments
 (0)