No way to remove a library or book from the system #52
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_books#52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
There is no delete/remove functionality anywhere in the system. Once a library or book is imported, it cannot be cleanly removed. Data persists across multiple locations and resurrects on restart:
~/hero/var/books/{library}/(export directory, library.toml, doctree.toml)books_dir(e.g.examples/ebooks_local/znzcybercity_cybercity.toml)library_config:{name}andbook:{name}keys inherobooks_statenamespaceDeleting from one location is insufficient —
sync_library_configs()pulls from KVS back to disk,export_books_for_serving()re-exports from TOMLs, anddiscover_namespaces_from_embedder()rediscovers from the embedder.Expected Behavior
Provide a way to fully remove a library or book:
CLI
Web UI
Admin API
remove_library/remove_bookWhat removal should do
~/hero/var/books/{library}/(or specific book subdirectory)library_config:{name}andbook:{name}KVS entries from embeddernamespace.delete)Notes
namespace.delete(params as array:["namespace_name"]) — it just needs to be wired upkvs.deletewith{"key": "...", "namespace": "herobooks_state"}