chore: remove code left from acquisition and Discover suggestions, and uncalled queries
Nothing reached any of it: - MusicBrainz search (artists, albums, songs), artist lookups and the query escaping they used. The release-group lookups the duplicate resolver uses stay. - Release-group covers, and artist-level tags for artists not in the library. - Nine named queries with no caller (CountTracksByArtist went with the previous commit), two of them describing request-progress reporting. The MusicBrainz client's retry and not-found tests now drive the release-group lookup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -205,11 +205,6 @@ LIMIT $1 OFFSET $2;
|
||||
-- Total album count for the /api/library/albums envelope.
|
||||
SELECT COUNT(*) FROM albums;
|
||||
|
||||
-- name: CountAlbumsByArtist :one
|
||||
-- Used by request-progress reporting to count how many albums have been
|
||||
-- ingested for a matched artist while a request is still in flight.
|
||||
SELECT COUNT(*) FROM albums WHERE artist_id = $1;
|
||||
|
||||
-- name: DeleteAlbumIfEmpty :one
|
||||
-- Deletes the album row only when it has no remaining tracks.
|
||||
-- Used after a track delete to tidy up orphaned albums. RETURNING gives
|
||||
@@ -304,7 +299,6 @@ UPDATE albums
|
||||
updated_at = now()
|
||||
WHERE id = $1;
|
||||
|
||||
|
||||
-- name: GetAlbumsByIDs :many
|
||||
-- Batched lookup used by /api/library/sync to hydrate upsert payloads
|
||||
--. Mirror of GetArtistsByIDs.
|
||||
|
||||
Reference in New Issue
Block a user