Skip to content

Document atomic spelling merges and their Undo - #344

Merged
KodeStar merged 6 commits into
mainfrom
burndown/docs-srv-merge
Nov 22, 2026
Merged

KodeStar merged 6 commits into
mainfrom
burndown/docs-srv-merge

Conversation

@KodeStar

Copy link
Copy Markdown
Owner

Documents KodeStar/audiosilo-server#560: merging author, narrator and series spellings changes every matching book or none, and Undo puts them back in one request.

  • Admin pages: Library > Authors and Narrators ("Merging two spellings": whole-credit matching, the 5,000-book limit, what Undo puts back and what it leaves and names), Health's series spellings (its own library only, linking to the author section), the audit log's "Merged spellings" and "Reverted" entries.
  • Developer pages: POST /admin/books/merge and POST /admin/books/merge/undo in the API reference (shapes, too_large, 404, 409 not_book_library, changed / not_found, the audit entries), the console page, the scanner page's note on merged names.
  • scripts/server-names.json: the two new admin routes, pinned to the merged server commit.

No screenshots change.

A merge of author, narrator or series spellings changes every matching book or none, up to 5,000 books, and Undo puts them back in one request, naming books edited since or moved by a scan. The API reference gains the merge and undo endpoints; the console, scanner and audit pages follow.
Health's series spellings section repeated the author merge's limit and
Undo paragraph word for word; it now keeps the series-only rules and links
to Merging two spellings. The merge routes use the reference's usual
401/403 row and name their audit entries, the book.bulk_edit note covers a
plain bulk edit too, and the Authors section points unsuggested pairs at a
bulk edit again.

Part of the v2.7.0 burn-down (atomic spelling merges).
The snapshot pinned the merge branch's commit, which a squash merge leaves
off server main. The lint reads only the committed names (the ref appears
in its messages), so the pin stays on the main commit it was synced from
and the two merge routes are added by hand until the next names:sync.

Part of the v2.7.0 burn-down (atomic spelling merges).
The merge's invalid_override row now says which field each refusal names
(a too-long target names the merged field, not target), and Undo states
that an unknown or podcast library's books come back as not_found, not
a 404, so a client does not wait for an error that never comes.

Part of the v2.7.0 burn-down (atomic spelling merges).
The audit log keeps up to 20 merged spellings and only the field name
under Reverted, and records the library whenever the merge covered one
(always for a Health series merge). A series merge covers its library
only, and Undo returns a name to the book's files or folder, not only
its tags.

Part of the v2.7.0 burn-down (atomic spelling merges).
@KodeStar
KodeStar merged commit bf15cad into main Nov 22, 2026
1 check passed
@KodeStar
KodeStar deleted the burndown/docs-srv-merge branch November 22, 2026 18:28
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