09 — Revisions
Two people edit one row. No edit is lost.
entity product { key: ProductId state: Product revised: true … }
let saved = entity.apply(product, key: id, command: price, from: Some(from)) match saved { Applied { .. } -> Repriced { id } Stale { .. } -> Stale { id } Rejected { reason } -> Refused { id, reason } }
Ingridfrom r7
NOK 449
—Larsfrom r7
NOK 549
—products/kettler7saved by Lars
NOK 499