Files
ProxMenux/AppImage/scripts
MacRimi 3c5beb0286 Persist resolution_reason on resolve_error so the audit log is useful
The UPDATE in `_resolve_error_impl` only touched `resolved_at` — the
`reason` argument every caller passes was silently dropped, and the
`resolution_reason` / `resolution_type` columns stayed NULL for every
auto-resolved error. The columns were added back in a previous sprint
for exactly this audit-log purpose, but the writer was never updated
to populate them.

Fix the SQL to write `resolution_reason = ?` and tag
`resolution_type = COALESCE(existing, 'auto')` so admin-cleared
errors (whose type is set elsewhere) keep their value while the
default auto path correctly labels itself.

Verified end-to-end on the lab host: re-injected the `disk_nvme2n1`
warning, waited one scan cycle, the row now reads
`resolution_type='auto'` and
`resolution_reason='Transient I/O cleared, SMART now reports healthy'`
— previously these columns stayed NULL even though the resolve_error
call passed a descriptive reason.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 23:02:52 +02:00
..
2026-03-17 18:19:34 +01:00
2025-10-12 21:19:01 +02:00
2026-05-23 21:27:18 +02:00
2026-05-23 21:27:18 +02:00
2026-05-31 11:03:04 +02:00
2026-01-29 18:27:36 +01:00
2026-05-20 18:14:32 +02:00
2026-05-22 18:24:03 +02:00
2026-05-30 21:54:32 +02:00
2026-05-24 16:42:44 +02:00
2026-04-01 12:03:54 +02:00
2026-04-05 11:58:14 +02:00