Files
Tosone b7ab896e44 fix(dal): stop poisoning the repository cache with incomplete rows
The cached repository decorator seeded every row returned by the list queries
and by GetByName, but only Get preloads the builder relations. Any list or
distribution request therefore cached a repository without its builder, and a
later Get by id returned builder=null, so the builder page believed the
repository had no builder.

Preload the same relations in GetByName, keep seeding only for Get, GetByName
and FindRecentlyUpdated (which now preloads as well, since it feeds the cache
prewarm), and stop seeding from the other list queries.

Verification:
- CI_DATABASE_TYPE=turso go test -parallel 1 -tags "netgo,timetzdata,exclude_graphdriver_btrfs,containers_image_openpgp" ./pkg/dal/repository/registry/...
- golangci-lint run --build-tags "netgo,timetzdata,exclude_graphdriver_btrfs,containers_image_openpgp" ./pkg/dal/repository/registry/...
- Requested /v2/library/rrr/tags/list (GetByName) and then the repository API:
  the builder is still returned for a repository that has one.
2026-10-28 16:48:33 +08:00
..
2026-08-01 20:32:49 +08:00
2026-08-01 20:32:49 +08:00
2026-08-01 20:32:49 +08:00