Commit f337047
committed
fix(status): treat customHealthCheck 'unconfigured' results consistently
Two paths produced status: 'unconfigured' on the system status dashboard
but they wrote the human-readable reason to different fields:
- Manifest requiredConfigKeys (MBTA, TfL, OTP, TransitLand, DB RIS, …)
→ wrapper writes the reason to `url` (rendered muted gray).
- Custom ctx.registerHealthCheck (only Swiss currently)
→ wrapper forwards `error` straight through, and the dashboard
renders any `error` in red regardless of status.
So 'Swiss API key not configured' was the only red 'not configured'
line on the page while every other one was gray.
Normalize at the wrapper: when a custom check returns 'unconfigured'
with an error message, hoist the message into `url` and clear `error`.
Now custom checks behave like manifest checks for missing config —
red is reserved for actual failures (status: 'down').1 parent 12c5196 commit f337047
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
105 | | - | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | | - | |
| 114 | + | |
109 | 115 | | |
110 | 116 | | |
111 | 117 | | |
| |||
0 commit comments