Commit d61e522
committed
Render unhealthy-age rollup on the Waterline dashboard
Surfaces `operator_metrics.tasks.oldest_unhealthy_at` and
`operator_metrics.tasks.max_unhealthy_age_ms` on the Unhealthy tasks
card so operators can read the worst-case duplicate-risk task age
(the earliest of `oldest_dispatch_failed_at`, `oldest_claim_failed_at`,
`oldest_dispatch_overdue_since`, `oldest_lease_expired_at`) from a
single meta line above the existing per-path detail rows instead of
taking a max over four separate age fields themselves.
`dashboard.vue` adds `operatorUnhealthyAgeAvailable()` /
`operatorUnhealthyOldestAt()` helpers and a v-if-guarded summary line:
worst <duration> unhealthy (since <ISO>)
The line degrades gracefully when the snapshot predates the rollout-
safety contract: the helper returns false when `max_unhealthy_age_ms`
is missing or null and the existing per-path age detail rows still
surface individual lease, dispatch-overdue, and dispatch-failed ages.
`testIndexExposesUnhealthyAgeRollup` pins the rollup keys on the
Waterline stats payload so a downstream regression that drops the
keys trips the test instead of silently disappearing from the
dashboard. The test self-skips when the vendored workflow package
predates the contract, mirroring `testIndexExposesBackendSeverityRollup`.1 parent 1bea749 commit d61e522
2 files changed
Lines changed: 54 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
317 | 323 | | |
318 | 324 | | |
319 | 325 | | |
| |||
1351 | 1357 | | |
1352 | 1358 | | |
1353 | 1359 | | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
1354 | 1378 | | |
1355 | 1379 | | |
1356 | 1380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
962 | 992 | | |
963 | 993 | | |
964 | 994 | | |
| |||
0 commit comments