mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1521] Profile import: modern collections path still full-replaces collections absent from the file #770
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#770
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?
Originally created by @Romuromylus on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1521
Originally assigned to: @Romuromylus on GitHub.
Follow-up to #1512 (fixed for the legacy table path in #1518).
#1518 made the legacy import path (
fileStorage.tables) skip-absent: a collection whose table key is missing from the file is left untouched instead of wiped. The moderndata.collectionsimport path (src-tauri/src/commands/storage/profile.rs,import_profile_collections_with_restored_assets) still rebuilds replacements for every mapped collection and falls back to an empty array for ones absent from the file, so a partial modern-format profile would still wipe the collections it omits.In practice the refactor's own exports are always full backups, so this is not triggered by a normal export/import round-trip. But a hand-built or partial modern-format file has the same data-loss shape #1512 described for the legacy path.
Suggested: apply the same present-key guard to the modern collections path so absent collections are left untouched, while present-but-empty still clears.
@Romuromylus commented on GitHub (May 30, 2026):
Fixed by #1633, merged into
refactor.