mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-28 19:40:50 +00:00
feat: add cascade deletion for notebooks with delete preview (#471)
* feat: decrease chunking size for maximum ollama compatibility * docs: improve i18n info on Claude.md * feat: add cascade deletion for notebooks with delete preview - Add Notebook.get_delete_preview() to show counts of affected items - Add Notebook.delete(delete_exclusive_sources) for cascade deletion - Always delete notes when notebook is deleted - Allow user to choose: delete or keep exclusive sources - Shared sources are always unlinked but never deleted - Add NotebookDeleteDialog component with radio button options - Add delete-preview API endpoint - Update delete endpoint with delete_exclusive_sources param - Add i18n support for all 5 locales Closes #77 * docs: remove harcoded config settings
This commit is contained in:
parent
f14020d385
commit
4e411e0488
19 changed files with 527 additions and 55 deletions
|
|
@ -25,6 +25,8 @@ Two base classes support different persistence patterns: **ObjectModel** (mutabl
|
|||
### notebook.py
|
||||
- **Notebook**: Research project container
|
||||
- `get_sources()`, `get_notes()`, `get_chat_sessions()`: Navigate relationships
|
||||
- `get_delete_preview()`: Returns counts of notes, exclusive sources, and shared sources that would be affected by deletion
|
||||
- `delete(delete_exclusive_sources)`: Cascade deletion - always deletes notes, optionally deletes exclusive sources, always unlinks all sources
|
||||
|
||||
- **Source**: Content item (file/URL)
|
||||
- `vectorize()`: Submit async embedding job (returns command_id, fire-and-forget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue