tgiachi
e3843ad7d6
feat(jobs): background jobs for artist photos and descriptions
...
Add one engine, internal/jobs, that runs the jobs which go through the whole
library: start, stop, progress, one at a time, give up after five failures in
a row, end at once when a provider is off.
- The covers job now runs on the engine; its API is unchanged.
- POST/GET/DELETE /library/artist-images looks for the picture of every
artist of the library that has a MusicBrainz id.
- POST/GET/DELETE /library/descriptions does the same for the Wikipedia
description.
- ?refresh=true searches everything again and never replaces a stored result
by a failure; artists without an id are never touched, nothing is looked up
by name.
- images.Service.EnsureArtistImage and about.Service.Ensure do the work for one
artist; the lists come from ImageRepo and DiscoveryRepo.
- jobs.Runner binds a job to the application context, replacing the two
hand-written controls.
- OpenAPI, contract test and README describe the new endpoints and say that
they are bulk requests.
2026-11-12 09:58:45 +01:00
..
about_test.go
feat(about): artist descriptions from Wikipedia
2026-11-11 21:36:27 +01:00
artist_jobs.go
feat(jobs): background jobs for artist photos and descriptions
2026-11-12 09:58:45 +01:00
artist_jobs_test.go
feat(jobs): background jobs for artist photos and descriptions
2026-11-12 09:58:45 +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