mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #887] [MERGED] Fix profile import completeness #4823
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#4823
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/887
Author: @cha1latte
Created: 5/15/2026
Status: ✅ Merged
Merged: 5/15/2026
Merged by: @cha1latte
Base:
staging← Head:fix/issue-847-profile-import-completeness📝 Commits (1)
8dcd7ccFix profile import completeness📊 Changes
2 files changed (+402 additions, -2 deletions)
View changed files
📝
packages/server/src/routes/backup.routes.ts(+185 -2)➕
packages/server/test/profile-backup-routes.test.ts(+217 -0)📄 Description
Linked issue
Closes #847
Why this change
What changed
fileStoragesnapshot to native profile exports so file-native tables round-trip with stable IDs.avatars,sprites,backgrounds,gallery,fonts, andknowledge-sourcesduring profile import.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --dir packages/server exec tsx ../../scratch/issue-847-profile-roundtrip-repro.ts: the exported profile lacked a file-native table snapshot, and import restored 0 chats, 0 messages, 0 connections, 0 chat image rows, 0 character image rows, and no gallery files.fileStorageand restores 1 chat, 1 message, 1 connection, 1 lorebook character link, 1 chat image row, 1 character image row, the avatar file, and both gallery files. Output saved locally atscratch/issue-847-after-output.txt.pnpm --dir packages/server exec tsx --test test/profile-backup-routes.test.ts; it passed.pnpm check; it passed.Docs and release impact
No docs or release metadata changed.
UI evidence (if applicable)
N/A — backend profile export/import route fix. Command proof is listed above.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.