fix(library): duplicate auto-resolve is off by default (#8252)
release / go (push) Successful in 2m18s
release / web (push) Successful in 1m34s
release / govulncheck (push) Successful in 22s
release / integration (push) Successful in 4m47s
release / android (push) Successful in 4m46s
release / Build signed APK (push) Successful in 5m35s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped

Other programs file music into the library, so Minstrel acts on
duplicates only once an admin turns this on. Migration 0114 sets the
column default to false and turns the setting off on installs that hold
the old default; the Go default follows, so an unreadable database
behaves like a fresh one. The pass removes no file either way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 21:29:04 -05:00
co-authored by Claude Opus 5.5
parent 677a421675
commit c073e41613
3 changed files with 16 additions and 4 deletions
@@ -0,0 +1 @@
ALTER TABLE fingerprint_settings ALTER COLUMN auto_resolve SET DEFAULT true;
@@ -0,0 +1,9 @@
-- Duplicate auto-resolve starts off. Other programs file music into the
-- library, so Minstrel acts on duplicates only once an admin has turned this
-- on. The pass never removes a file either way: on, it links copies of one
-- song so they count once and notes which song a misfiled recording is.
--
-- Installs that never chose a value hold the old default, true, and are set
-- off here too; an admin who wants it turns it back on.
ALTER TABLE fingerprint_settings ALTER COLUMN auto_resolve SET DEFAULT false;
UPDATE fingerprint_settings SET auto_resolve = false;
+6 -4
View File
@@ -56,9 +56,11 @@ type FingerprintSettings struct {
AcousticMaxBitErrorRate float64 AcousticMaxBitErrorRate float64
BackfillConcurrency int32 BackfillConcurrency int32
SweepIntervalHours int32 SweepIntervalHours int32
// AutoResolve lets the duplicate resolver act on its own: merge copies no // AutoResolve lets the duplicate resolver act on its own: link copies of
// release needs. Off, it only classifies, and every group waits for an // one song so they count once, dismiss distinct versions, hold back video
// admin. // rips, and note which song a misfiled recording is. It never removes a
// file. Off by default: Minstrel acts on duplicates only once an admin asks
// it to. Off, the pass only classifies, and every group waits for an admin.
AutoResolve bool AutoResolve bool
// UpdatedAt is when the settings were last saved. Set by the database; // UpdatedAt is when the settings were last saved. Set by the database;
// ignored by Set. // ignored by Set.
@@ -73,7 +75,7 @@ var DefaultFingerprintSettings = FingerprintSettings{
AcousticMaxBitErrorRate: defaultAcousticMaxBitErrorRate, AcousticMaxBitErrorRate: defaultAcousticMaxBitErrorRate,
BackfillConcurrency: fingerprintBackfillConcurrency, BackfillConcurrency: fingerprintBackfillConcurrency,
SweepIntervalHours: defaultSweepIntervalHours, SweepIntervalHours: defaultSweepIntervalHours,
AutoResolve: true, AutoResolve: false,
} }
// ErrFingerprintSettingOutOfRange is returned by Set for a value migration // ErrFingerprintSettingOutOfRange is returned by Set for a value migration