Commit ab600cb
committed
Fix(workflows): a run on a remote vault carries each note's comments
On a vault served by znserver, the app plans a workflow run and sends
the server the file changes to make; a move arrives there as a delete
and a write. The server carries a note's comments on its own renames
and moves, but a workflow move left them behind under the old name,
detached from the note, the way the desktop applier did before 1cdb0e8:
the changes name only notes, and a note's comments live in .zennotes,
which a change may not name.
The prepared run now also lists its moves, one per path op as it lands,
suffix and all, in order. The matching change in ZenNotes/znserver
carries each note's comments with its move, refuses a destination where
an earlier note's comments still sit, and records what it moved in the
desktop's ledger format so undo puts it back. The web bridge and the
desktop's remote client pass the prepared run through unchanged, so
nothing else moves here. A server from before the field ignores it and
moves the Markdown alone; an older app sends no moves and gets what it
always got.1 parent 57acec4 commit ab600cb
2 files changed
Lines changed: 47 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
34 | 60 | | |
35 | 61 | | |
36 | 62 | | |
| |||
70 | 96 | | |
71 | 97 | | |
72 | 98 | | |
| 99 | + | |
| 100 | + | |
73 | 101 | | |
74 | 102 | | |
75 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
30 | 44 | | |
31 | 45 | | |
32 | 46 | | |
| |||
171 | 185 | | |
172 | 186 | | |
173 | 187 | | |
| 188 | + | |
174 | 189 | | |
175 | 190 | | |
176 | 191 | | |
| |||
240 | 255 | | |
241 | 256 | | |
242 | 257 | | |
| 258 | + | |
243 | 259 | | |
244 | 260 | | |
245 | 261 | | |
| |||
301 | 317 | | |
302 | 318 | | |
303 | 319 | | |
304 | | - | |
| 320 | + | |
| 321 | + | |
305 | 322 | | |
306 | 323 | | |
0 commit comments