release / go (push) Successful in 1m54s
release / web (push) Failing after 5s
release / integration (push) Failing after 3m44s
release / govulncheck (push) Successful in 20s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 19s
release / android (push) Canceled after 2m37s
Minstrel is now a viewer of the library it is pointed at. Finding, downloading and filing music moves out of it. Removed from the server: - the request flow (requests, approval, auto-approve) and the wanted list, follows, release profiles and release blocks; - searching indexers, the download clients, the importer, the album lifecycle and missing-file re-acquisition; - the catalogue's discography, search and art (the MusicBrainz release and track-list cache stays, for the duplicate resolver); - Discover: its suggestions of artists not in the library, snoozes, the candidate-artist tag enrichment and its tuning scope; - writes to acquisition tables from moving the library folder and from merging duplicates, the want-list join on Suspect sources, the sealing of acquisition credentials, and the release-group lookup only re-acquisition used. Settling a wrong-slot duplicate no longer sets the release aside: the copies go and their slots show as missing until a good copy is in the library. Removed from the web: Admin > Acquisition and Requests, /requests, /discover, Follow on the artist page, the auto-approve toggle, and the Collection's wanted-list tabs. The Collection is now the library's health: an overview, Reports, Duplicates, Suspect sources and Missing files. The README and docs no longer describe getting music. The tables stay for now; a later migration drops them. The request notification kinds and the Android screens are still to go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
2.0 KiB
SQL
31 lines
2.0 KiB
SQL
-- name: AdminSummary :one
|
|
-- What the admin rail and the Overview's verdict read: each queue
|
|
-- that waits on a person, with how many and since when. One round trip, so
|
|
-- the rail costs one cheap read on every admin page. The "since" is the
|
|
-- oldest item still waiting: how long the queue has been left, which is what
|
|
-- tells an admin a count of 2 is fine today and wrong after a month.
|
|
SELECT
|
|
-- A broken track is one report however it was found: a listener flagged
|
|
-- it, or it failed to play. Counted by track, as the Reports
|
|
-- page lists them.
|
|
(SELECT count(*) FROM (
|
|
SELECT track_id FROM quarantine
|
|
UNION
|
|
SELECT track_id FROM playback_errors WHERE resolved_at IS NULL) r)::bigint AS reports,
|
|
(SELECT min(at) FROM (
|
|
SELECT created_at AS at FROM quarantine
|
|
UNION ALL
|
|
SELECT occurred_at FROM playback_errors WHERE resolved_at IS NULL) r)::timestamptz AS reports_since,
|
|
-- Duplicates needing review: a cross-release group is kept and linked by
|
|
-- the resolver and waits on nobody (the report's review view).
|
|
(SELECT count(*) FROM duplicate_groups g
|
|
WHERE g.status = 'pending' AND g.class IS DISTINCT FROM 'cross_release'
|
|
AND (SELECT count(*) FROM duplicate_group_members m WHERE m.group_id = g.id) >= 2)::bigint AS duplicates,
|
|
(SELECT min(g.detected_at) FROM duplicate_groups g
|
|
WHERE g.status = 'pending' AND g.class IS DISTINCT FROM 'cross_release'
|
|
AND (SELECT count(*) FROM duplicate_group_members m WHERE m.group_id = g.id) >= 2)::timestamptz AS duplicates_since,
|
|
(SELECT count(*) FROM tracks WHERE source_verdict = 'suspect' AND missing_since IS NULL)::bigint AS suspect,
|
|
(SELECT min(source_verdict_at) FROM tracks WHERE source_verdict = 'suspect' AND missing_since IS NULL)::timestamptz AS suspect_since,
|
|
(SELECT count(*) FROM tracks WHERE missing_since IS NOT NULL)::bigint AS missing,
|
|
(SELECT min(missing_since) FROM tracks WHERE missing_since IS NOT NULL)::timestamptz AS missing_since;
|