mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1153] [MERGED] Make profile imports atomic with rollback #4947
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#4947
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/1153
Author: @Xelvanis
Created: 5/24/2026
Status: ✅ Merged
Merged: 5/24/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/profile-import-failure-paths📝 Commits (1)
780003fMake profile imports atomic with rollback📊 Changes
5 files changed (+664 additions, -45 deletions)
View changed files
📝
src-tauri/crates/storage/src/lib.rs(+264 -0)📝
src-tauri/src/commands/storage/profile.rs(+32 -3)📝
src-tauri/src/commands/storage/profile/assets.rs(+348 -36)📝
src-tauri/src/commands/storage/profile/legacy.rs(+9 -3)📝
src-tauri/src/commands/storage/profile/zip_import.rs(+11 -3)📄 Description
Linked issue
No linked issue; PR requested directly.
Why this change
Profile imports replace both persisted collections and managed asset directories. Before this branch, a failure partway through import could leave the profile in a mixed state, with some new data installed and old data already removed.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdLocal validation run:
git diff --check origin/refactor...HEADpassed with no whitespace errors.cargo check --manifest-path src-tauri/Cargo.tomlpassed.cargo test --manifest-path src-tauri/Cargo.toml --workspacepassed.pnpm check:architecturepassed.Manual verification notes
Docs and release impact
Changelog: this is release-note-worthy import/storage behavior, but this
refactorbranch does not containCHANGELOG.md, so no changelog file was updated.UI evidence (if applicable)
N/A; Rust storage/profile import behavior only.
Summary by CodeRabbit
Release Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.