NEC-371: A drawing opened before its first sync write falls back to Markdown (empty file, FLAKE-15 after NEC-297) #335
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!335
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-nec-371-a-drawing-opened-before-its-first-sync-w"
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-371 — https://projectron.nerchure.com/tasks/393
A drawing, canvas or base that a folder listing names, and this vault does not have yet, used to be created as an empty placeholder and filled once its document arrived. Opened in between (by a link, a quick-switcher pick, or the e2e suite), Excalidraw 2.27 parsed the empty file and showed the drawing as Markdown until reopened (FLAKE-15, CI run 1635). NEC-297's hold could not help: no write was under way. Such a file is now made by its first write, with its content, and never empty (SAFE-A52). A placeholder is kept only where a delete made here while sync was stopped is being finished. Review found two faults in the first version, both fixed and tested: a file made late missed the pinned listing, so a delete made while stopped came back everywhere; and a delete arriving mid-connect could be followed by a create that re-listed the file. Verified with the unit suites (mutation-checked), the local gate with container e2e, a 60-minute Excalidraw hardness run (seed 779315737; its one round-98 failure, a shape bouncing in B's live view where this change's code never ran, did not recur in 60-minute replays on main or on the branch) and a 60-minute canvas hardness run; the user tested the build in their own vaults.
Spec:
docs/changes/NEC-371-drawing-opened-before-first-write/spec.mdChangelog
A drawing, canvas or base arriving from another vault no longer opens as Markdown when opened the moment it appears.