fix(alerts): verify signal links and inherit backend routing

This commit is contained in:
moe-berri 2026-11-08 16:18:10 +08:00
commit efada9298f
2 changed files with 3 additions and 3 deletions

View file

@ -110,7 +110,7 @@ BACKEND_PATH_PREFIXES: tuple[str, ...] = (
"/v1/rust_control_plane/",
# Alerting / email / IP allowlist
"/alerting/",
"/issues/",
"/alerts/",
"/email/",
"/add/allowed_ip",
"/delete/allowed_ip",
@ -154,7 +154,7 @@ BACKEND_EXACT_PATHS: frozenset[str] = frozenset(
{
"/",
"/routes",
"/issues",
"/alerts",
"/lens",
"/openapi.json",
"/docs",

View file

@ -77,7 +77,7 @@ def test_activity_link_escapes_entity_identity_and_includes_baseline() -> None:
assert query["activity_model"] == ["provider/model?foo=bar&other=1"]
assert query["activity_from"] == ["2026-10-28"]
assert query["activity_to"] == ["2026-11-04"]
assert query["alert"] == ["qa-alert"]
assert query["signal"] == ["qa-alert"]
assert query["detail_tab"] == ["activity"]