mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
The update-file event said that a file was saved, but not what changed: the change row (xlog) was the only place with that, and the event did not point at it. A reaction of the events consumer cannot read a change it cannot name. The command now generates the id of the row it inserts and carries it in the event props, under :file-change-id. The response of the RPC does not change (the prop goes in the metadata of the result, not in the result), and the prop is a plain key with a uuid value, so clean-props keeps it. A save writes two change rows: the change itself, which has no label, and the snapshot of the previous state, which has one. The event points at the change one. AI-assisted-by: minimax-m3.1-flash