Rebasely Beta: data may be purged

examples/live-notes Public

YAML · 13 lines · 909 B · at 70b1506

title: An edit reaching other editorsdescription: >-  Editor A types while editor B has the same note open. The room puts the edit in order, saves it  and passes it on. Every 100th version it also copies the note to R2.actors: [editor-a, editor-b]steps:  - { from: editor-a, to: note-room, label: "op: insert \"oat \" at 4, written against version 41" }  - { from: note-room, to: ops, label: transform the op past versions 42 and 43 from the log }  - { from: ops, to: note-room, label: "the op as it applies now, which the room saves to SQLite" }  - { from: note-room, to: editor-a, label: "ack: version 44" }  - { from: note-room, to: editor-b, label: the transformed op at version 44 }  - { from: note-room, to: snapshots, label: "every 100 versions: put the note's text, after the replies" }  - { from: editor-b, to: ops, label: "move the op past B's own unacknowledged edits, then apply it" }