Delete edits automatically

There is an action we’ve created that makes changes to a lot of different objects if a user selects a long time range. To combat timeouts we only let the action itself create objects for the next 2 months so the user can see them immediately and log a request to create the ones further out in the pipeline.

The backing dataset eventually has the correct data and by the time users look at the timeline more than 2 months away all the objects are created and synced.

Some of the actions are more complex and operate on the same objects so we sometimes find ourselves in a situation that an action created an object but it will not get cleaned up by actions and we only know it should be removed based on the backing dataset content.

To make data correct we would need to delete all the edits and let the backing dataset reindex. What is the best way of periodically dropping all edits for a specific object type?

Hi,

Don’t know if this will answer your question (if I fully understand the complexity of your issue)

But on the following menu:

  • Ontology object > Datasources (That can be selected on the left menu) > Edits > Conflict Resolution

You can choose to ‘Apply most recent values’ instead of the ‘Apply user edits’.

This was if there is a change in the original datasource, after the user edits, it will keep the most recent.

Cheers