Files
romm/backend/tests/endpoints
Stu Anderson 6fc323e24b chore(api): widen indexes for filtered search, MariaDB Fix (#5824)
* chore(api): add indexes to roms

* chore(api): add additional indexes

* chore(api): widen indexes on rom table

* perf(api): fast filtered and short searches on MariaDB, plus year, rating and game mode filter

* chore(api): add ANALYZE TABLE at end of migration

* pr-ready: drop the roms_search table

* pr-ready: code-review

* pr-ready: review-polish

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

* pr-ready: prose

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

* chore(api): use hand-coded list of columns

* pr-ready: code-review

Restore the schema before asserting in the 0163 schema tests, send
platform_ids in the endpoint test, and fix two stale comments.

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

* pr-ready: simplify

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

* pr-ready: review-polish

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

* pr-ready: prose

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

* pr-ready: prose

Reword the comments code-review added to the 0163 schema tests.

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

* test(database): cover year_range_ms

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

* fix(database): raise the sort limit on MariaDB through the mysql driver

The listener keyed on the dialect name, which is mysql when
ROMM_DB_DRIVER=mysql reaches a MariaDB server. Check the dialect's
is_mariadb instead.

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

* test: fix the sort limit tests on PostgreSQL and the _ms types

The sort limit tests read is_mariadb from the test engine, which
PostgreSQL's dialect lacks, so they now set it. _ms takes named date
parts again, since mypy rejects a star tuple before tzinfo.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
2026-12-02 18:58:05 -05:00
..