Testing Action Edits in Workshop

In workshop, in Edit Mode, I often test actions in workshop to verify how data is being written and the app populated with data… and data is actually being written to the object types. Would be great to have a setting or mode to be able to apply actions just for testing purposes or seeing the results of applying actions, without actually writing the data to the objects.

Welcome @g.dali,

have you tried Action reverts in Ontology Manager?

It allows an Action to be reverted immediately after the Action has been applied. You can revert an Action by selecting Undo in the success message after any successful Action application.

New Actions are revertible by default.

Action reverts are only available for Object Storage V2; meaning that only Actions that modify or create an object type in OSv2 can be reverted.

If your object types are not currently stored in Object Storage V2, you can migrate by following this guide.

hope this helps,

1 Like

Hello

Thanks for your reply. Yes, I’ve tried that.

In a scenario with a Workshop App with multiple actions types, some of which may be “chained”, it would not 100% solve the issue.

I think what I am trying to describe is similar to an idea of caching all the action edits while in edit mode and then clearing them (i.e. not applying them) once I exit Edit mode (or any other test mode).

Does that help clarifying the need ?

Thanks for looking into this

If you have chained functions, then you’re right:

The official caveats apply:

  • An Action on an object cannot be reverted once any subsequent edit has been made to the object, even if the edit is on a different property. In other words, an Action on an object can only be reverted if the Action is the most recent edit to an object.
  • An Action cannot be reverted if Action reverts has been toggled off after Action submission, even if Action reverts have been toggled on again.

You only option as of today is to migrate these chain functions to Python/Typescript functions and handle the revert yourself. This won’t be connected to workshop’s edit mode, but you could add the logic to revert up to a certain point.

I understand this is not ideal but could work while a feature like what you’re asking for is added.

1 Like

A suggestion is to use Scenarios in your workshop. Scenarios allow you to complete actions without them being applied to your Ontology.

This may or may not be ideal for your particular dev/ test workflows, but it is a methodology to consider.

1 Like