sonda/internal/storage
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi acede4bd91 fix(settings): strict body, deleted-account race, doc wording
- PATCH /me/settings accepts exactly one JSON object: text after it, null, a
  differently cased name or an unknown name are refused (400) and change nothing.
- A user deleted between the read and the write of the settings gives 401, not a
  500, on PostgreSQL too (foreign key violation mapped to user not found).
- The spec says a 401 can also mean the account no longer exists, and that the
  body is strict.
- README no longer says more than the setting does.
- Tests: strict body cases, tokens of a deleted account on GET and PATCH,
  recognising a foreign key violation on both databases.
2026-11-11 19:20:42 +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 fix(discovery): purge lock, cleanup chains and rescans that cannot read 2026-11-11 17:36:14 +01:00
discovery_test.go fix(discovery): purge lock, cleanup chains and rescans that cannot read 2026-11-11 17:36:14 +01:00
library.go fix(discovery): purge lock, cleanup chains and rescans that cannot read 2026-11-11 17:36:14 +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
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(settings): my own settings, starting with Discover from my listening 2026-11-11 19:16:26 +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(settings): strict body, deleted-account race, doc wording 2026-11-11 19:20:42 +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