Hub 2.6.1: the Failed jobs filter and alert search no longer answer 500

The status list had timed_out, which isn't a JobStatus (the enum has
expired), and alert search used contains on the EventLevel enum: Postgres
refused both queries. JOB_STATUSES now matches the enum (tested against
schema.prisma); Failed = failed,expired; unknown products refused; level
matched by name. All list queries checked on Postgres.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 21:58:28 +02:00
co-authored by Claude Opus 5.5
parent 22d78ac81c
commit 3893fb91e0
9 changed files with 39 additions and 10 deletions
+12
View File
@@ -5,6 +5,18 @@ versions follow [Semantic Versioning](https://semver.org/).
## [Unreleased]
## [2.6.1] - 2026-11-19
### Fixed
- **Jobs → Failed answered 500 every time.** 2.6.0's status list had a `timed_out` that isn't a job
status (the database has `expired`), so Postgres refused the query. The list now matches the
JobStatus enum exactly (a test checks it), Failed shows failed and expired jobs, and a status or
product the database doesn't know is dropped or refused (400) instead of reaching it.
- **Searching alerts answered 500:** it searched the alert level (an enum) as text; it now matches
level names instead.
- Checked against Postgres: every jobs filter and the alerts and audit searches.
## [2.6.0] - 2026-11-19
### Added