J
8a64ecab77
fix(projects): return 400 (not 500) for invalid project status/priority
...
CreateProject/UpdateProject passed an unvalidated status/priority straight to
the INSERT, so an unknown value (e.g. --status active) tripped the table's
CHECK constraint and surfaced as a blanket 500 'failed to create project'
with no server-side log to diagnose it (#3925 ).
Pre-validate both enums against the column CHECK lists and return a 400 with
the allowed values. Back it with isCheckViolation -> 400 for any other
constrained column, and log the underlying error on genuine 500s so transient
DB failures are diagnosable.
MUL-3153
Co-authored-by: multica-agent <github@multica.ai >
2026-06-09 13:47:27 +08:00
..
2026-05-28 16:05:19 +08:00
2026-05-28 16:05:19 +08:00
2026-06-03 19:12:14 +08:00
2026-05-28 19:06:57 +08:00
2026-06-03 16:39:06 +08:00
2026-05-28 19:06:57 +08:00
2026-05-28 15:53:16 +08:00
2026-06-08 19:29:57 +08:00
2026-06-03 16:39:06 +08:00
2026-06-02 15:47:57 +08:00
2026-05-27 15:47:36 +08:00
2026-05-27 15:47:36 +08:00
2026-06-03 16:39:06 +08:00
2026-06-03 16:39:06 +08:00
2026-06-01 22:11:27 +08:00
2026-06-03 13:47:30 +08:00
2026-06-08 19:29:57 +08:00
2026-05-28 16:05:19 +08:00
2026-05-28 16:05:19 +08:00
2026-06-01 08:28:15 +08:00
2026-06-08 14:50:52 +08:00
2026-06-05 17:01:23 +08:00
2026-06-05 17:01:23 +08:00
2026-06-03 16:39:06 +08:00
2026-06-04 13:12:32 +08:00
2026-06-08 19:29:57 +08:00
2026-06-08 19:29:57 +08:00
2026-06-03 16:39:06 +08:00
2026-06-04 15:45:42 +08:00
2026-06-09 11:59:00 +08:00
2026-06-05 15:21:22 +08:00
2026-06-05 15:21:22 +08:00
2026-06-03 19:12:14 +08:00
2026-06-04 14:52:57 +08:00
2026-06-03 16:39:06 +08:00
2026-05-29 12:49:07 +08:00
2026-06-02 15:47:57 +08:00
2026-05-27 16:28:15 +08:00
2026-05-28 14:20:20 +08:00
2026-06-02 17:17:41 +08:00
2026-06-03 19:12:14 +08:00
2026-06-03 19:12:14 +08:00
2026-06-05 18:30:19 +08:00
2026-06-09 11:59:00 +08:00
2026-06-09 11:59:00 +08:00
2026-06-03 16:39:06 +08:00
2026-06-03 16:39:06 +08:00
2026-05-27 22:22:26 +08:00
2026-05-27 22:22:26 +08:00
2026-06-02 15:05:49 +08:00
2026-06-09 13:47:27 +08:00
2026-06-09 13:47:27 +08:00
2026-06-08 13:08:38 +08:00
2026-06-08 14:04:13 +08:00
2026-06-02 18:23:57 +08:00
2026-06-01 14:45:16 +08:00
2026-06-01 15:19:42 +08:00
2026-06-02 18:23:57 +08:00
2026-06-02 13:03:15 +08:00
2026-06-02 15:47:57 +08:00
2026-06-03 16:39:06 +08:00
2026-05-28 15:53:16 +08:00
2026-06-08 14:50:52 +08:00
2026-06-02 14:29:29 +08:00
2026-06-01 16:48:05 +02:00
2026-06-03 16:39:06 +08:00