Repository navigation
Document atomic spelling merges and their Undo - #344
Merged
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
POST /admin/books/mergeandPOST /admin/books/merge/undoin the API reference (shapes,too_large, 404, 409not_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.