Alerts: the open list reorders on every refresh, so Acknowledge can hit a different alert #32

Closed
opened 2026-11-16 05:21:16 +00:00 by jcoffey-dev · 1 comment
Owner

Open incidents are sorted by severity, then by when they opened. When several open in the same evaluation (a restart, a big outage, the demo's first minute) they tie, and the order falls back to Go's map order, which changes on each 5-second refresh.

Seen on the demo: I aimed at Acknowledge on B-0018 and the request went to B-0003/ack, because the row under the pointer had changed.

Fix: break ties on the incident id so the order is stable, and use a stable sort.

Open incidents are sorted by severity, then by when they opened. When several open in the same evaluation (a restart, a big outage, the demo's first minute) they tie, and the order falls back to Go's map order, which changes on each 5-second refresh. Seen on the demo: I aimed at Acknowledge on B-0018 and the request went to `B-0003/ack`, because the row under the pointer had changed. **Fix:** break ties on the incident id so the order is stable, and use a stable sort.
jcoffey-dev added the bug
priority
p1
labels 2026-11-16 05:21:16 +00:00
jcoffey-dev self-assigned this 2026-11-16 05:21:16 +00:00
Author
Owner

Fixed in #47: ties on open time now break on the incident id, so the list keeps one order between refreshes. In the next release.

Fixed in #47: ties on open time now break on the incident id, so the list keeps one order between refreshes. In the next release.
Sign in to join this conversation.