Files
romm/backend/handler/database
Sam Dornan 15db2ba2e4 fix(backend): address the review bots' findings
Three separate problems, all found by the bots on #4174:

The recommendations block was inserted between `convert_images_to_webp_task
.init()` and the `_enqueue_convert_images_to_webp()` call beneath it, so the
WebP backfill only enqueued when recommendations were enabled and enqueued
even when WebP conversion was off. Moved back under its own flag; the diff
against master is now purely additive.

Invalidating the cached feed from the ROM-user endpoint missed every other
writer of the fields it scores on: play-session ingestion, save and state
uploads, and the RetroAchievements sync all move `last_played`, `status` or
`now_playing` through `update_rom_user` without passing that endpoint, so a
game played after loading Home left the ranking stale for the cache TTL.
Invalidation moves to `update_rom_user`, which every writer goes through.

The feed ranked exactly as many entries as were asked for and applied
visibility filtering afterwards, so a user with hidden ROMs got a short row
and, if the hidden games ranked highest, an empty one. It now ranks deeper
for those users only, mirroring what the similar-games endpoint already did.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 19:41:12 -05:00
..
2025-09-04 11:17:00 -03:00
2026-03-12 23:02:12 -04:00
2026-08-01 14:49:58 -04:00
2026-04-06 22:29:55 -04:00
2026-07-19 22:59:37 -04:00