[PR #4876] [MERGED] fix: normalize legacy Universal Preset names before reconciliation #6524

Closed
opened 2026-10-23 04:11:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4876
Author: @SpicyMarinara
Created: 8/10/2026
Status: ✅ Merged
Merged: 8/10/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/assigned-issue-sweep-4864-4872


📝 Commits (2)

  • 2931517 fix: normalize legacy preset name before reconciliation
  • d36a436 Merge remote-tracking branch 'origin/staging' into agent/assigned-issue-sweep-4864-4872

📊 Changes

2 files changed (+22 additions, -11 deletions)

View changed files

📝 packages/server/src/db/seed.ts (+10 -11)
📝 scripts/regressions/stock-preset-protection.regression.ts (+12 -0)

📄 Description

Why

Follow-up to #4873: CodeRabbit identified that the legacy Default display-name migration ran after reconciliation branches that can return early. Profiles on the no-snapshot upgrade path could therefore retain the old name for one extra startup.

Refs #4871

What changed

  • Move the existing legacy display-name normalization before all preset reconciliation branches.
  • Add regression coverage for an outdated seed hash with no snapshot marker.

Automated verification

  • pnpm check
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/stock-preset-protection.regression.ts

Manual verification

  • Start from a legacy stock preset named Default with an outdated seed hash and no snapshot marker, then confirm startup renames it immediately.

🔄 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/4876 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/10/2026 **Status:** ✅ Merged **Merged:** 8/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issue-sweep-4864-4872` --- ### 📝 Commits (2) - [`2931517`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2931517c76084f82fe38d55493c17ea3d9b1d093) fix: normalize legacy preset name before reconciliation - [`d36a436`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d36a436b92e2bae171e576ac15022b2da5bf50db) Merge remote-tracking branch 'origin/staging' into agent/assigned-issue-sweep-4864-4872 ### 📊 Changes **2 files changed** (+22 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/db/seed.ts` (+10 -11) 📝 `scripts/regressions/stock-preset-protection.regression.ts` (+12 -0) </details> ### 📄 Description ## Why Follow-up to #4873: CodeRabbit identified that the legacy `Default` display-name migration ran after reconciliation branches that can return early. Profiles on the no-snapshot upgrade path could therefore retain the old name for one extra startup. Refs #4871 ## What changed - Move the existing legacy display-name normalization before all preset reconciliation branches. - Add regression coverage for an outdated seed hash with no snapshot marker. ## Automated verification - `pnpm check` - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/stock-preset-protection.regression.ts` ## Manual verification - [ ] Start from a legacy stock preset named `Default` with an outdated seed hash and no snapshot marker, then confirm startup renames it immediately. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:11:14 +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#6524
No description provided.