release / govulncheck (push) Successful in 15s
release / web (push) Failing after 1m21s
release / go (push) Successful in 1m35s
release / integration (push) Failing after 4m57s
release / android (push) Successful in 5m11s
release / Build signed APK (releases and dev) (push) Successful in 5m28s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Minstrel keeps its own list of what it is to get, keyed by MusicBrainz release group. A want comes from an approved request, a new release by a followed artist, or an album whose files went missing, and is held once the library has a full edition of it. - Migration 0081: release_type_profiles (Standard seeded: Album, EP, Single, studio only), follows, follow_seen_groups and wants. lidarr_requests becomes requests with plain *_mbid columns; approved album and track requests move onto the wanted list, approved artist requests become follows, and the library's album artists start out followed. missing_reacquisitions and the retry settings go. - internal/wanted: follows are checked against MusicBrainz discographies daily. The first check sets a baseline, and only releases after it are wanted unless the follow asked for what already exists. Profiles filter by primary and secondary type, so live recordings stay out unless a profile ticks Live. - internal/requests (was lidarrrequests): approving puts the request on the wanted list, and an artist request can be approved on a chosen profile. A request completes when its want is held. - The re-acquisition sweeper wants a missing album back instead of asking Lidarr; searching for it is the search schedule's (#5521). - Web: an admin Wanted page (Wanted, Missing files, Held, Following), a follow control on artist pages, a release-type profiles card on Integrations, "Approve on a profile" on Requests, and want state on Missing files. The artist detail API returns the artist's MBID. - Android: the request body sends artist_mbid, album_mbid and track_mbid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
1.8 KiB
SQL
39 lines
1.8 KiB
SQL
ALTER TABLE reacquisition_settings
|
|
ADD COLUMN backoff_base_hours int NOT NULL DEFAULT 6,
|
|
ADD COLUMN backoff_max_hours int NOT NULL DEFAULT 168,
|
|
ADD COLUMN max_attempts int NOT NULL DEFAULT 3,
|
|
ADD COLUMN auto_approve boolean NOT NULL DEFAULT true;
|
|
|
|
ALTER INDEX requests_user_id_idx RENAME TO lidarr_requests_user_id_idx;
|
|
ALTER INDEX requests_status_idx RENAME TO lidarr_requests_status_idx;
|
|
ALTER INDEX requests_artist_mbid_idx RENAME TO lidarr_requests_artist_mbid_idx;
|
|
ALTER INDEX requests_album_mbid_idx RENAME TO lidarr_requests_album_mbid_idx;
|
|
ALTER TABLE requests ADD COLUMN lidarr_add_confirmed_at timestamptz;
|
|
ALTER TABLE requests ADD COLUMN root_folder_path text;
|
|
ALTER TABLE requests ADD COLUMN quality_profile_id int;
|
|
ALTER TABLE requests RENAME COLUMN track_mbid TO lidarr_track_mbid;
|
|
ALTER TABLE requests RENAME COLUMN album_mbid TO lidarr_album_mbid;
|
|
ALTER TABLE requests RENAME COLUMN artist_mbid TO lidarr_artist_mbid;
|
|
ALTER TYPE request_kind RENAME TO lidarr_request_kind;
|
|
ALTER TYPE request_status RENAME TO lidarr_request_status;
|
|
ALTER TABLE requests RENAME TO lidarr_requests;
|
|
|
|
CREATE TABLE missing_reacquisitions (
|
|
album_id uuid PRIMARY KEY REFERENCES albums (id) ON DELETE CASCADE,
|
|
attempts int NOT NULL DEFAULT 0,
|
|
last_attempt_at timestamptz,
|
|
last_request_id uuid REFERENCES lidarr_requests (id) ON DELETE SET NULL,
|
|
gave_up_at timestamptz,
|
|
created_at timestamptz NOT NULL DEFAULT now(),
|
|
updated_at timestamptz NOT NULL DEFAULT now(),
|
|
CONSTRAINT missing_reacquisitions_attempts_nonneg CHECK (attempts >= 0)
|
|
);
|
|
CREATE INDEX missing_reacquisitions_due_idx
|
|
ON missing_reacquisitions (last_attempt_at NULLS FIRST)
|
|
WHERE gave_up_at IS NULL;
|
|
|
|
DROP TABLE wants;
|
|
DROP TABLE follow_seen_groups;
|
|
DROP TABLE follows;
|
|
DROP TABLE release_type_profiles;
|