You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- _format_monitor_cell: precedence reordered so a positive anomaly count
beats training / pending. Previously a row that surfaced via
anomaly_type=X could show "training" or "pending" in the X column,
hiding the value that put it in the filtered set.
- get_monitor_group_summary: empty-state lookback signal restored. The
outer query now COALESCEs MAX(lookback) to 0 (was 1), preserving the
pre-refactor dashboard signal for "No monitor runs yet". The fabricated
default_lookback param is dropped.
- parse_monitor_type: accepts an optional label so the error message names
the caller's public arg. list_monitored_tables exposes the arg as
anomaly_type, so the error now says "Invalid anomaly_type ..." instead
of leaking the helper's internal monitor_type name.
- common.py: drop unused format_monitor_type helper (no callers on this
branch; re-added in TG-1092 where list_monitors will use it).
Tests:
- list_monitored_tables: new test pinning count > 0 precedence over
training / pending, and verifying error still wins over count.
- get_monitor_summary: new empty-state test (lookback=0; Window
start/end fields suppressed; all four cells render the full
"no results yet or not configured" phrase).
- parse_monitor_type: new label-override test for the anomaly_type
caller path.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments