Undo Modify Actions On Selected Objects When Undo Toast Is Not Shown

Hi, I’d like to undo modify actions on a selected object when the revert action toast is not shown. Docs mention undo for deletes, wondering if there are other ways to do this for modify actions.

As far as I understand the edit behaviour on ontology storage V2, ther is no native log of edits like in OsV1 that could help you to revert an action.

But you maybe can achieve that by configuring a log for each actions (that will create one or several log object types) then display the stack of edits in a workshop.

For exemple you can union all log-object-types and display them in a table. Then if you make the table rows selectable you can add a logic that compute the value of each properties before selected edit has been applied. And you can make it fill an action form to roll back to your desired values.

Maybe you will need to force user to select only the last edit, or last edit + previous edits (and so on) to prevent wrong result.

1 Like