sonda/internal/storage
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 548ee03d83 feat(images): a background job that builds all the covers
- POST /library/covers (admin) starts, in the background and one at a time like a scan,
  a job that builds the cover of every album that has something to play and no cover that
  is still good; GET /library/covers shows the progress and how the last job ended;
  DELETE /library/covers stops it. ?refresh=true searches every album again.
- For each album it does what opening its cover does: the user's own files first, then the
  Cover Art Archive if the provider is on. It gives up, and says why, when the provider
  fails for five albums in a row; an album that vanished is skipped, not a failure.
- This is the one request that goes through the whole library, and the README and the
  provider text say so: with the archive on it sends the release group id of each album with
  no picture in its files, one after the other, spaced out.
- NewRouter now refuses to build when a service was not wired, naming it, instead of
  panicking at the first request (the wiring of this job in main had been missed, which no
  test could see).
- The outbound spacing test measures where the request leaves the client, so a busy
  machine cannot make it fail.
- Spec, contract and HTTP tests, README updated.

Closes #45
2026-11-12 09:34:27 +01:00
..
about_test.go feat(about): artist descriptions from Wikipedia 2026-11-11 21:36:27 +01:00
auth_test.go fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00
catalog.go feat(discovery): similar artists from Last.fm 2026-11-11 16:42:52 +01:00
catalog_test.go fix(catalog): keep albums apart, align album counts, reject bad search text 2026-11-11 13:47:31 +01:00
discovery.go feat(images): album covers from the Cover Art Archive 2026-11-12 09:09:31 +01:00
discovery_test.go fix(discovery): purge lock, cleanup chains and rescans that cannot read 2026-11-11 17:36:14 +01:00
feedback.go fix(feedback): purge only what the provider named, no leak between users 2026-11-11 20:18:04 +01:00
feedback_test.go fix(feedback): purge only what the provider named, no leak between users 2026-11-11 20:18:04 +01:00
images.go feat(images): a background job that builds all the covers 2026-11-12 09:34:27 +01:00
images_test.go feat(images): a background job that builds all the covers 2026-11-12 09:34:27 +01:00
library.go fix(images): purge removes every archive cover, the id of an emptied album moves on 2026-11-12 09:21:11 +01:00
library_test.go fix(images): purge removes every archive cover, the id of an emptied album moves on 2026-11-12 09:21:11 +01:00
listening.go fix(listening): report a deleted account first and document one event per play 2026-11-11 15:02:28 +01:00
providers.go feat(providers): provider settings in a table and a careful outbound HTTP client 2026-11-11 16:07:12 +01:00
providers_test.go feat(providers): provider settings in a table and a careful outbound HTTP client 2026-11-11 16:07:12 +01:00
refresh.go fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00
repos_test.go fix(listening): report a deleted account first and document one event per play 2026-11-11 15:02:28 +01:00
storage.go fix(discovery): concurrent writes, adopted artists and a client that leaves 2026-11-11 16:47:33 +01:00
storage_test.go feat(images): free photos of artists from Wikimedia Commons 2026-11-11 22:03:32 +01:00
taste.go fix(taste): order by the score, clamp future events, keep tags short 2026-11-11 18:52:08 +01:00
taste_test.go fix(taste): order by the score, clamp future events, keep tags short 2026-11-11 18:52:08 +01:00
upgrade_test.go fix(library): make the libraries upgrade and validation robust 2026-11-11 13:34:44 +01:00
users.go fix(feedback): purge only what the provider named, no leak between users 2026-11-11 20:18:04 +01:00
usersettings.go fix(settings): strict body, deleted-account race, doc wording 2026-11-11 19:20:42 +01:00
usersettings_test.go fix(settings): strict body, deleted-account race, doc wording 2026-11-11 19:20:42 +01:00