Files
romm/backend/handler
Stu Anderson 6b6bd866eb fix(api): missing status comparison counts as no match (#5821)
* bugfix(api): missing status comparison counts as no match

* pr-ready: code-review

Match unknown status values as false so PostgreSQL's enum never sees them,
and cover unknown values, name case and grouped versions in the tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* pr-ready: plain-prose

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(api): reject unknown statuses_logic values

Any value other than exactly 'all' or 'none' acted as 'any', so 'NONE'
returned the opposite of what was asked. The field is now limited to
'any', 'all' and 'none', and anything else gets a 422.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(api): limit every *_logic filter field to any, all or none

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:35:55 -05:00
..