ontodev / valve.rs

A lightweight validation engine written in rust.
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Create an "update" message on `update_row` #43

Closed jamesaoverton closed 1 year ago

jamesaoverton commented 1 year ago

I would like to be able to highlight cells that have been modified since load. I want to do this by adding a row to the 'message' table when a cell is updated. The 'value' should be the new value. The 'level' should be "update" (so maybe 'level' is a bad name for this column). The 'message' should be something like "Value was changed from 'old' to 'new'."

The current update_row function removes all messages about the row and then adds any new ones. It should be modified to (1) not delete previous update messages, and (2) insert the new update message.