soulsync/tests/database
BoulderBadgeDad 1ad80d77a6 #901: one-time backfill — stable ids for EXISTING file-import mirrored tracks
The mirror_playlist fix only assigns stable ids to newly-imported playlists, so a
user with an existing file-import playlist would still have empty-id rows (and dead
Find & Add matches) until a manual re-import. Add an idempotent startup backfill that
assigns the SAME stable id a fresh import would to any mirrored track missing one —
so existing matches start sticking with no re-import. Runs once per db/process (the
init is guarded), only touches empty-id rows (no-op afterward), native ids untouched.

Tests: backfill fills empty ids with the exact fresh-import id, is idempotent (2nd
run = 0), and leaves native ids alone.
2026-06-22 09:06:34 -07:00
..
test_album_thumb_preservation.py Preserve Navidrome album cover art 2026-05-25 19:51:38 -07:00
test_get_artist_tracks_indexed.py Address Cin review: extract helpers, indexed pool fetch, tidy nits 2026-05-24 23:33:55 -07:00
test_mirrored_playlists.py #901: one-time backfill — stable ids for EXISTING file-import mirrored tracks 2026-06-22 09:06:34 -07:00