mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1679] [MERGED] Harden refactor storage imports #5207
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#5207
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/1679
Author: @cha1latte
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @cha1latte
Base:
refactor← Head:codex/refactor-storage-safety📝 Commits (1)
0a838a8Harden refactor storage imports📊 Changes
9 files changed (+878 additions, -355 deletions)
View changed files
📝
src-tauri/src/commands/storage/imports/access.rs(+24 -2)📝
src-tauri/src/commands/storage/imports/bulk_imports.rs(+52 -6)📝
src-tauri/src/commands/storage/imports/marinara.rs(+288 -342)➕
src-tauri/src/commands/storage/imports/marinara_assets.rs(+125 -0)➕
src-tauri/src/commands/storage/imports/marinara_rollback.rs(+146 -0)📝
src-tauri/src/commands/storage/imports/marinara_tests.rs(+82 -0)📝
src-tauri/src/commands/storage/profile.rs(+134 -0)📝
src-tauri/src/commands/storage/profile/assets.rs(+25 -4)📝
src-tauri/src/commands/storage/profile/zip_import.rs(+2 -1)📄 Description
Linked issue
N/A - refactor readiness blocker found during boundary/data-contract review.
Why this change
Storage/import behavior is a high-risk refactor boundary because profile imports, ST imports, managed assets, and generic Marinara imports can affect existing user data. The review found cases where missing current-profile collections or assets could be treated like empty replacement data, ST import selection trusted client-provided picker state, and nested generic imports could leave partial records behind after a failure.
What changed
pickerSelectedas unrestricted directory access for ST bulk import.Refactor impact
Primary owner:
Rust storage and imports.
Impact areas reviewed:
Boundary notes:
src-tauri.src/shared/api.Pressure points touched:
src-tauri/src/commands/storage/profile.rssrc-tauri/src/commands/storage/profile/assets.rssrc-tauri/src/commands/storage/imports/bulk_imports.rssrc-tauri/src/commands/storage/imports/marinara.rsValidation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyCodex-run proof:
pnpm checkpassed inscratch/refactor-lane-worktrees/storage.cargo test --manifest-path src-tauri\Cargo.toml bulk_importspassed: 10 tests.cargo test --manifest-path src-tauri\Cargo.toml marinara::testspassed: 7 tests.cargo test --manifest-path src-tauri\Cargo.toml profilepassed: 38 tests.cargo check --manifest-path src-tauri\Cargo.tomlpassed.git diff --check upstream/refactor...HEADpassed.Manual verification notes
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs changes included. This is a storage/import safety lane only.
UI evidence
N/A - storage/import behavior only; no visible UI changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.