Files
Niklas Ye 0275c2b6d9
CI / test (push) Successful in 1m40s
Release / test (push) Successful in 3s
Release / binaries (push) Successful in 1m28s
Show how long an open incident will probably last
The incident detail view gets an Estimate line, for example "usually ~30m
more (up to 1h 30m, 12 earlier)", or "running longer than usual" when the
incident has outlived every comparable earlier one. The figures come from
the server's GET /api/incidents/{id}/estimate: how long earlier incidents
with the same team and signature took, counting only those that lasted
longer than this one has so far.

It is fetched best effort, alongside the similar incidents, and any error
means no line. That covers a server older than the endpoint (404), so
nothing about the minimum server version changes. The line is hidden for a
resolved incident and when the server has fewer than five comparable
incidents. It is an estimate drawn from history, not a forecast.
2026-11-01 17:26:25 +01:00
..