summaryrefslogtreecommitdiff
path: root/internal/repository/sqlite_test.go
AgeCommit message (Collapse)Author
2026-05-17Restructure repo: move Go server into player-server/Paul Buetow
2026-05-17Fix in-progress media thresholdPaul Buetow
2026-05-17Add playback repository cleanup queriesPaul Buetow
2026-05-17Add finished flag to playback progressPaul Buetow
2026-05-16Configure SQLite for NFS-backed deploymentsPaul Buetow
2026-05-16Migrate stale sets schema for podcastsPaul Buetow
2026-05-09t1: remove repository migration shimPaul Buetow
2026-05-03fix(admin): fix rescan goroutine lifecycle and race on shared ScanProgressPaul Buetow
- Protect adminService scan state (cancel func + progress pointer) with sync.Mutex. - Allocate fresh ScanProgress per trigger and pass it to the scanner, eliminating races on the previously shared progress struct. - Cancel previous scan context before starting a new one. - Add tests for cancellation, fresh progress per scan, concurrent triggers, and empty progress when never started. - Fix race-prone tests by polling Running==true before waiting for completion.
2026-05-01Rename Go module from codeberg.org/snonux/play to codeberg.org/snonux/playerPaul Buetow
2026-04-30pa: raise aggregate test coverage to 81.5%Paul Buetow
2026-04-30Rename module to codeberg.org/snonux/play (task aa)Paul Buetow
- Update go.mod module path - Replace all internal imports from github.com/paul/kiss-media-player to codeberg.org/snonux/play - Run go mod tidy and gofmt -w .
2026-04-30fix(ca): translate sql.ErrNoRows to nil,nil for optional lookupsPaul Buetow
Repository methods that perform single-row queries now return (nil,nil) instead of leaking sql.ErrNoRows when a row is missing. This aligns with service-layer expectations (e.g. GetMediaDetail, ValidateSession, UpdateProgress, AssignTag, access checks) so normal missing data does not break app flows. Files changed: - internal/repository/media.go, user.go, set.go, set_permission.go, tag.go, note.go, playback_progress.go, playback_accumulator.go, session.go, share.go - internal/repository/sqlite_test.go (updated assertions) - internal/repository/sqlite_no_rows_test.go (new focused repository tests) - internal/service/no_rows_test.go (new focused service tests)
2026-04-30fix: exclude soft-deleted media from GetMediaByIDPaul Buetow
2026-04-29fix: correct LIKE escape in ListMediaPaul Buetow
2026-04-29feat: SQLite schema migrations, repository interfaces, and concrete SQLite ↵Paul Buetow
implementations with :memory: table-driven tests (task l9)