mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5569] [MERGED] Preserve the Universal Preset during Permanent Delete #6827
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6827
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5569
Author: @Gunterlie
Created: 8/27/2026
Status: ✅ Merged
Merged: 8/27/2026
Merged by: @Gunterlie
Base:
staging← Head:universal-stays-put📝 Commits (2)
668bd14fix: preserve universal preset during expungeb0bcd13fix: preserve a valid preset default after expunge📊 Changes
3 files changed (+212 additions, -5 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/routes/admin.routes.ts(+42 -5)➕
scripts/regressions/admin-preset-expunge.regression.ts(+168 -0)📄 Description
Linked issue
Closes #5568
Why this change
Permanent Delete currently removes Marinara's immutable Universal Preset, leaving affected users without the stock prompt structure until startup seeding repairs it. The destructive action should remove only editable presets and their organization data.
What changed
systemKeybefore preset expunge.[Unreleased]changelog entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkpassed locally.pnpm regressionpassed: 159/159.admin-preset-expungeregression passed after the final negative-control update.libnspr4.soshared library and no system browser is installed.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)The user-visible fix is documented in
CHANGELOG.md. No version, schema, public API, client, localization, or user-facing documentation changes are required.UI evidence (if applicable)
No UI code changed. Browser evidence is unavailable due to the host dependency limitation described above.
Proof
The regression builds the real Fastify app, creates the seeded stock preset plus an editable preset and owned child rows, invokes both deletion endpoints, and verifies that the stock row and its original children remain byte-for-byte unchanged while editable data and preset folders are removed. A user preset imitating the stock name and author is also deleted, proving that only the reserved
marinara-universal-presetsystem key grants protection.Summary by CodeRabbit
Bug Fixes
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.