Skip to content

Ignore one duplicate comparison or group at a time and keep a split set's ignore across a rename - #559

Merged
KodeStar merged 9 commits into
mainfrom
burndown/srv-mig-ignores
Nov 22, 2026
Merged

KodeStar merged 9 commits into
mainfrom
burndown/srv-mig-ignores

Conversation

@KodeStar

Copy link
Copy Markdown
Owner

Duplicate "ignore" decisions in Health now cover exactly what the admin dismissed: one comparison (a pair, including a cross-library pair) or one group, and a split disc set as a whole set that follows its folder when it is renamed.

  • Migration 0092: decisions keyed by library + path (never books.id); the old ignores are mapped on the first start, before the first scan, each keeping the coverage it had. A flag that can't be mapped stays and keeps the old rule.
  • Health's duplicates: comparison key / group_key, paged shared members, large groups changed in one request, "Include other libraries", Show ignored, Suggest as duplicates again, Undo. "Suggest again" stores a shown decision, so an older flag can't hide the group again.
  • A split set's first disc follows the scanner's join order (metadata.DiscOrder), so "CD1 Part 2" is no longer disc 12.
  • An identifier shared by more than 16 books in one library (a placeholder ISBN or ASIN) makes no cross-library pairs; those books still group inside their library.
  • Player wire unchanged (admin routes only; admin-ui mirrors the fields).

Part of #185 (item 1) and #224 (the disc-order ignore re-key and the per-group ignore).

Verified live, 9/9: an upgrade from the v2.6.0 release binary on a seeded data dir (0070-0092 run, every old ignore keeps its coverage, the split set and a cross-library group included), Suggest again surviving a new copy and a rescan, a folder rename keeping the split ignore on a fresh and a migrated dir, the 17-copy placeholder ISBN giving no cross cards, no console or API errors in en and de. Gate: build-admin, go build/vet/test -race/golangci-lint on the pure-Go and the native SQLite engines.

After updating: going back to v2.6.x shows mapped groups and moved split sets as open again; a downgrade needs the backup taken before the upgrade (release notes).

Docs: KodeStar/audiosilo-docs (paired PR).

… ignore with its parent folder (migration 0092)
disc_before compared only the digits of a disc folder's name, a second rule beside the one the scanner joins discs by, so a name like "CD1 Part 2" read as disc 12 and Health could list a different first disc than the join plays first. The natural disc order moves from library to metadata.DiscOrder, which both now call.

Part of #224.
DuplicateSelection decoded and keyed the stored decisions with its own copy of the loop findDuplicateSets uses; both now read them through readDecisions. The Ref comparator the upcoming job's pending list and a decision's paths both depend on is one compareRefs, so the two orders cannot drift. The split-parent guard lives once inside discIgnoredExpr, the legacy marker is read with getServerState, and the console's unignore takes its quiet and group key as options.

Part of #185, #224.
The split-disc ignore now sits on the disc set's parent folder, which no book's move carries, so renaming Box to "Box 2" brought an ignored split book back to Health. MoveFolderFavourites, which the scan calls for each renamed folder, now re-keys the split_disc_set row too.

Part of #224.
The old across view hid a transitive group only when every copy in it was flagged. Migration 0092 still recovered a flagged pair from its shared timestamp, and the all-members fallback also hid it, so an upgrade hid a pair the old view showed whenever an unflagged copy in a third library joined the group. The startup mapping now stores such a pair as shown and leaves its flags unmapped.

Part of #185.
The quality and ref comments sat on the wrong methods, TestDiscOrder's comment stayed behind in library, the split-disc filter arguments shadowed the filter's own args, and the Italian hint said biblioteche where the console says librerie.

Part of #185, #224.
A suggest-again on a group whose copies carried only mapped flags stored
nothing, so the copies' duplicate_mapped flags still counted toward the
all-members fallback. Once a copy with an unmapped pre-upgrade flag joined
the group, the larger group was hidden again, where the old server had
cleared the flags and showed it. The suggest-again now stores a shown
decision whenever any copy has an old flag, and the fallback no longer
hides a group that holds a comparison an admin suggested again.

Part of #224.
Cross-library comparisons are direct pairs, so an identifier on k copies
in one library and m in another made k*m pairs, each hashed, sorted and
shown as its own card: a placeholder ISBN on 500 + 500 books made 250,000.
A signal that more than 16 books in one library share is now treated as
a placeholder and makes no cross pairs (its copies still group within
their library). The pairs are built after every row is read, so the
bound does not depend on row order.

Part of #185.
@KodeStar
KodeStar merged commit 9c636fb into main Nov 22, 2026
7 checks passed
@KodeStar
KodeStar deleted the burndown/srv-mig-ignores branch November 22, 2026 16:39
KodeStar added a commit to KodeStar/audiosilo-docs that referenced this pull request Nov 22, 2026
…gnore (#342)

Documents KodeStar/audiosilo-server#559: ignoring one duplicate pair or
group at a time, a split disc set ignored as a whole set that follows a
renamed folder, and how the update maps the ignores made before.

- User page (admin Health): what Ignore covers, Include other libraries,
Show ignored and Suggest as duplicates again (numbered steps, starting
with the toggle for a pair across two libraries), Undo.
- Developer pages: the comparison `key` / `group_key`, paging,
large-group requests and how a pair is sent (by its two members) in the
API reference; the first-disc order and the 16-copy cross-library limit
in the scanner page; the console page; `duplicate_decisions`, migration
0092, keys by library + path, and the downgrade note in the data model.

The Health duplicates screenshot is recaptured through
screenshots/run.sh after the server PR merges.
@KodeStar KodeStar moved this to Done in AudioSilo Nov 22, 2026
KodeStar added a commit to KodeStar/audiosilo-docs that referenced this pull request Nov 22, 2026
…ates (#343)

Recaptures, through screenshots/run.sh, the four screenshots that
changed with the last two merges:

- bridge/accounts.png, bridge/accounts-audible.png,
bridge/audible-sign-in.png: the Bridge page's Audible card with the new
backup intro and the "Last known to the Bridge" row
(KodeStar/audiosilo-bridge#142).
- admin/health-duplicates.png: Health's duplicates with Include other
libraries on, a pair across two libraries
(KodeStar/audiosilo-server#559). The image now sits under the paragraph
about pairs across libraries.

The duplicates capture step waits for the libraries the run creates and
keeps the cross-library pair in frame; its manifest hint describes the
new state. No PNG placed by hand.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant