[PR #1616] [MERGED] Cascade lorebook child delete #5149

Closed
opened 2026-10-22 04:13:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1616
Author: @Promansis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Promansis

Base: refactor ← Head: fix/issue-1550


📝 Commits (1)

  • e23498a Cascade lorebook child delete

📊 Changes

1 file changed (+104 additions, -1 deletions)

View changed files

📝 src-tauri/src/commands/storage/commands/entities.rs (+104 -1)

📄 Description

Summary

  • Delete lorebook entries and folders when their parent lorebook is deleted
  • Keep the cleanup in the Rust storage delete owner so catalog bulk delete uses the same path
  • Add regression coverage that preserves unrelated lorebook children

Fixes #1550

Verification

  • cargo test --manifest-path src-tauri/Cargo.toml storage_commands::entity_commands::tests::deleting_lorebook_cascades_entries_and_folders_only_for_that_lorebook
  • Combined branch also passed cargo check --manifest-path src-tauri/Cargo.toml

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1616 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/issue-1550` --- ### 📝 Commits (1) - [`e23498a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e23498a83fc079abc48847bd1b1f6991f3fef68c) Cascade lorebook child delete ### 📊 Changes **1 file changed** (+104 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src-tauri/src/commands/storage/commands/entities.rs` (+104 -1) </details> ### 📄 Description ## Summary - Delete lorebook entries and folders when their parent lorebook is deleted - Keep the cleanup in the Rust storage delete owner so catalog bulk delete uses the same path - Add regression coverage that preserves unrelated lorebook children Fixes #1550 ## Verification - cargo test --manifest-path src-tauri/Cargo.toml storage_commands::entity_commands::tests::deleting_lorebook_cascades_entries_and_folders_only_for_that_lorebook - Combined branch also passed cargo check --manifest-path src-tauri/Cargo.toml --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:44 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5149
No description provided.