[PR #504] [MERGED] feat(noodle): add data cleanup controls #1001

Closed
opened 2026-10-20 17:33:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/504
Author: @Gunterlie
Created: 8/22/2026
Status: ✅ Merged
Merged: 8/22/2026
Merged by: @Gunterlie

Base: staging ← Head: round-the-clock


📝 Commits (5)

  • db4c2a6 feat(noodle): add data cleanup controls
  • 2a28cdd fix(noodle): enforce data deletion safeguards
  • 0c7a1b0 merge staging and rebuild noodle
  • 7fa91bf fix(noodle): delete unlocks before posts
  • 404ad7d fix(noodle): clean dependent records

📊 Changes

15 files changed (+624 additions, -327 deletions)

View changed files

📝 artifacts/noodle-1.2.12.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 packages/noodle/client.js (+21 -21)
📝 packages/noodle/manifest.json (+4 -4)
📝 packages/noodle/server.mjs (+242 -281)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx (+107 -3)
📝 packages/noodle/src/engine/packages/client/src/hooks/use-noodle.ts (+26 -0)
📝 packages/noodle/src/engine/packages/client/src/localization/locales/en.json (+10 -0)
📝 packages/noodle/src/engine/packages/server/src/routes/noodle.routes.ts (+12 -0)
➕ packages/noodle/src/engine/packages/server/src/services/noodle/noodle-data-cleanup.ts (+21 -0)
📝 packages/noodle/src/engine/packages/server/src/services/storage/noodle.storage.ts (+125 -0)
➕ sources/engine/packages/server/src/services/noodle/noodle-data-cleanup.ts (+21 -0)
➕ tests/noodle-data-cleanup.regression.ts (+17 -0)

📄 Description

Closes #502

Why this change

Noodle stores accounts, timeline activity, subscriptions, unlocks, digests, and refresh history. Users need an explicit way to remove stale records after deleting Engine characters or personas, and a separate confirmed action to remove all Noodle-owned data without deleting Engine or Slurp data.

What changed

  • Added Clean Up Unused Data under Settings -> Noodle -> Advanced.
  • Added Delete All Noodle Data with typed DELETE confirmation.
  • Added conservative stale-account and orphan-row cleanup.
  • Preserved Engine characters, personas, chats, Conversation schedules, galleries, and Slurp data.
  • Bumped Noodle from 1.2.11 to 1.2.12.
  • Rebuilt the Noodle package, ZIP artifact, manifest, and catalog entries.

Validation

  • npx tsx tests/noodle-data-cleanup.regression.ts
  • npm run check
  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-package-locales.mjs
  • node scripts/validate-catalog.mjs
  • git diff --check

npm run check passes with existing repository warnings and zero errors.

Manual proof gap

The full Engine browser server was not available in this package workspace. Install, restart, and UI confirmation flows still need manual verification in a complete Marinara Engine checkout.

Summary by CodeRabbit

  • New Features

    • Added controls to clean up unused Noodle data while preserving active character and persona data.
    • Added an option to delete all Noodle data, protected by explicit DELETE confirmation.
    • Added confirmation dialogs, progress states, completion summaries, and error messages showing affected record counts.
    • Updated Noodle to version 1.2.12.
  • Bug Fixes

    • Improved removal of orphaned Noodle records through transactional cleanup operations.

🔄 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-Agents/pull/504 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/22/2026 **Status:** ✅ Merged **Merged:** 8/22/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `round-the-clock` --- ### 📝 Commits (5) - [`db4c2a6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/db4c2a62dd7182c249d6320c538decbe89329395) feat(noodle): add data cleanup controls - [`2a28cdd`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2a28cdd4f4205c165111f79bd996d85944305332) fix(noodle): enforce data deletion safeguards - [`0c7a1b0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0c7a1b06e0cd5d264ffce337416c5476d4d49c57) merge staging and rebuild noodle - [`7fa91bf`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7fa91bfb1ef302a73dd5b9074e7af22879b5a0c2) fix(noodle): delete unlocks before posts - [`404ad7d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/404ad7d93706956688de6453f3356f83697705a3) fix(noodle): clean dependent records ### 📊 Changes **15 files changed** (+624 additions, -327 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/noodle-1.2.12.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `packages/noodle/client.js` (+21 -21) 📝 `packages/noodle/manifest.json` (+4 -4) 📝 `packages/noodle/server.mjs` (+242 -281) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx` (+107 -3) 📝 `packages/noodle/src/engine/packages/client/src/hooks/use-noodle.ts` (+26 -0) 📝 `packages/noodle/src/engine/packages/client/src/localization/locales/en.json` (+10 -0) 📝 `packages/noodle/src/engine/packages/server/src/routes/noodle.routes.ts` (+12 -0) ➕ `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-data-cleanup.ts` (+21 -0) 📝 `packages/noodle/src/engine/packages/server/src/services/storage/noodle.storage.ts` (+125 -0) ➕ `sources/engine/packages/server/src/services/noodle/noodle-data-cleanup.ts` (+21 -0) ➕ `tests/noodle-data-cleanup.regression.ts` (+17 -0) </details> ### 📄 Description Closes #502 ## Why this change Noodle stores accounts, timeline activity, subscriptions, unlocks, digests, and refresh history. Users need an explicit way to remove stale records after deleting Engine characters or personas, and a separate confirmed action to remove all Noodle-owned data without deleting Engine or Slurp data. ## What changed - Added Clean Up Unused Data under Settings -> Noodle -> Advanced. - Added Delete All Noodle Data with typed DELETE confirmation. - Added conservative stale-account and orphan-row cleanup. - Preserved Engine characters, personas, chats, Conversation schedules, galleries, and Slurp data. - Bumped Noodle from 1.2.11 to 1.2.12. - Rebuilt the Noodle package, ZIP artifact, manifest, and catalog entries. ## Validation - `npx tsx tests/noodle-data-cleanup.regression.ts` - `npm run check` - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-package-locales.mjs` - `node scripts/validate-catalog.mjs` - `git diff --check` `npm run check` passes with existing repository warnings and zero errors. ## Manual proof gap The full Engine browser server was not available in this package workspace. Install, restart, and UI confirmation flows still need manual verification in a complete Marinara Engine checkout. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added controls to clean up unused Noodle data while preserving active character and persona data. * Added an option to delete all Noodle data, protected by explicit `DELETE` confirmation. * Added confirmation dialogs, progress states, completion summaries, and error messages showing affected record counts. * Updated Noodle to version 1.2.12. * **Bug Fixes** * Improved removal of orphaned Noodle records through transactional cleanup operations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:33:08 +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-Agents#1001
No description provided.