wrolpi/modules/repos
Roland ca1f6dd886
Model reprs read only loaded state
A repr runs inside log calls. Reading a relationship or an expired column there runs a query, and
on an object whose session is gone it raises DetachedInstanceError instead of logging. Archive's
repr also stat'ed its SingleFile file on disk.

`wrolpi.common.loaded()` follows attributes through state that is already loaded (primary keys
from the identity key) and never runs SQL. Every model repr uses it; with everything loaded the
output is unchanged, except Video and Archive now show the FileGroup's primary path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 16:38:37 -06:00
..
test Give the repos ownership tests a fixed git identity (#790) 2026-10-08 17:01:59 -06:00
__init__.py Add a Repos module that mirrors git repositories (#783) 2026-10-07 15:16:58 -06:00
api.py Add a Repos module that mirrors git repositories (#783) 2026-10-07 15:16:58 -06:00
conftest.py Add a Repos module that mirrors git repositories (#783) 2026-10-07 15:16:58 -06:00
downloader.py Add a Repos module that mirrors git repositories (#783) 2026-10-07 15:16:58 -06:00
errors.py Add a Repos module that mirrors git repositories (#783) 2026-10-07 15:16:58 -06:00
lib.py Request sessions keep objects after commit; guard dict() serializers (#811) 2026-10-10 19:15:33 -06:00
models.py Model reprs read only loaded state 2026-10-11 16:38:37 -06:00
schema.py Add a Repos module that mirrors git repositories (#783) 2026-10-07 15:16:58 -06:00