mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 18:18:47 +01:00
A scan can be scoped by platform id, by folder slug for a directory with no database row, or by rom. Treating anything without platform ids as a scan of the whole library meant a queued slug-scoped or rom-scoped scan suppressed every rescan the watcher would otherwise schedule. Summarise what the pending scans cover instead, and match a changed folder against the slugs as well as the ids. A scan whose payload cannot be read is left out: its scope is unknowable, and a duplicate scan costs less than a rescan that never happens. Adds the tests this file never had, plus tests for the job accessors that tolerate an unreadable payload. Four of them fail against the previous scope check. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>