NEC-381: Re-adding a shared folder after Stop syncing here deleted its notes, drawings and attachments everywhere #349
No reviewers
Labels
No labels
area:docs
area:identity
area:ops
area:plugin
area:server
channel:community
channel:direct
channel:owned
channel:press
channel:social
dependencies
e2ee-constrained
gate:at-ga
gate:pre-ga
marketing
parity
relay:absent
relay:planned
relay:requested
relay:supported
risk:additive
risk:contract
risk:none
security
usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Nectenda/nectenda!349
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-nec-381-re-adding-a-shared-folder-after-stop-syn"
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?
Task: NEC-381 — https://projectron.nerchure.com/tasks/403
"Stop syncing here" removed only the mapping; the folder's listing store kept its pinned listing, undecided deletes and synced attachment hashes, keyed by folder id. Adding the folder again landed it beside the old one, empty, and its first start read every listed file as deleted here and deleted them everywhere (13 notes, 4 structured files, 20 attachments in the user's vaults). The attachment engine was also never let go of on an unmap, so in the same session it kept the old path and hashes. Now a folder mapped that this vault does not hold is forgotten first and starts as a first start (SAFE-A56); pins and the deletes-made-here record carry the path they were taken under and are read only there; most of what was pinned missing here is placed again rather than deleted (SAFE-A36); and the refresh lets the attachment engine go of folders no longer mapped at their path. Fresh-context review findings fixed and mutation-checked; local gate green including the container e2e run.
Spec:
docs/changes/NEC-381-readd-after-stop-syncing/spec.mdChangelog
Adding a shared folder again after "Stop syncing here" no longer deletes its notes, drawings and attachments everywhere: the folder starts afresh and fills from the server.