mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1177] [MERGED] Fix legacy profile settings import #4960
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#4960
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/1177
Author: @cha1latte
Created: 5/24/2026
Status: ✅ Merged
Merged: 5/24/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1124-profile-import-pk📝 Commits (1)
af2c25bFix legacy profile settings import📊 Changes
3 files changed (+195 additions, -0 deletions)
View changed files
📝
src-tauri/src/commands/storage/imports/marinara.rs(+44 -0)📝
src-tauri/src/commands/storage/profile.rs(+61 -0)📝
src-tauri/src/commands/storage/profile/legacy.rs(+90 -0)📄 Description
What?
Fixes legacy full-profile imports on the refactor branch so
data.fileStorage.tables.app_settingsrows withkey: "ui"are restored asapp-settingsrecords withid: "ui".Also recognizes
marinara_profileexports in the generic Marinara importer and returns guidance to use Settings -> Import Profile instead of the low-level unknown import type message.Fixes #1124
Why?
A fresh Docker/file-storage instance can already have seeded synced UI settings before a full profile import runs. Legacy profile exports store that row under
app_settings.key, while refactor storage reads settings byid; without normalization, imported UI settings are not addressable through the storage API.How?
app_settings.keyintoapp-settings.idduring legacy profile table import.keyfield after normalization.id: "ui"..jsonMarinara imports and profile ZIPs selected through the single-file importer.Machine Verification
cargo test --manifest-path src-tauri/Cargo.toml legacy_app_settings_key_rows_import_as_settings_idsfailed because imported UI settings were not addressable by id.cargo test --manifest-path src-tauri/Cargo.toml generic_marinara_import_directs_profile_exports_to_profile_importfailed because the generic importer did not direct profile exports to Import Profile.cargo test --manifest-path src-tauri/Cargo.toml profilepassed, 12 tests.pnpm checkpassed.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.Manual Verification
None required for the core claim; the storage/import behavior is covered by route-level and helper-level Rust regression tests plus
pnpm check.Notes
This PR targets
refactoras requested. The exact old duplicate-primary-key insert path from the issue body has been replaced onrefactor; the matching broken branch behavior was legacyapp_settings.keyrows not being normalized into id-based app settings.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.