sonda/internal/storage
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 32068f7cf6 fix(listening): report a deleted account first and document one event per play
- fix: a listen from a deleted account is answered 401 before the track or the
  duration is looked at, so a client that signs out on 401 does it whatever
  else is wrong with the request (UserExists on the store)
- docs: one event per play, sent when the play ends or is abandoned, with one
  idempotency key per play. An event cannot be upgraded afterwards: a key that
  was already used is ignored even if the type or duration differ, and a new
  key would count the same play twice. The README no longer says to report at
  20 seconds, which led straight into that trap, and no longer hard-codes the
  minimum
- test: the SQL filter at exactly the threshold and just under it, the order of
  events within the same second, the order of checks for a deleted account
2026-11-11 15:02:28 +01:00
..
auth_test.go fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00
catalog.go fix(catalog): keep albums apart, align album counts, reject bad search text 2026-11-11 13:47:31 +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
library.go feat(catalog): add the read API for artists, albums and tracks 2026-11-11 13:43:38 +01:00
library_test.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +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
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 feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
storage_test.go feat(catalog): add the read API for artists, albums and tracks 2026-11-11 13:43:38 +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(auth): close session races found in review 2026-11-11 12:45:06 +01:00