Remove prevVersionId from MP Entity CRUD API. Update should automatically create a new instance and point to the changed object.
Currently in creation and updating MP entities (like tools, training materials, datasets and workflows) a user has possibility to indicate the previous version of the created/updated entity. In the
update methods there is a field
prevVersionId to indicate the id of the previous version of this item.
This field should be removed from API. The
create method should always create new entity without pointing the previous version of this entity. The
update method should always point to the updated version of the entity.
Does anyone have a different vision of the object's history? It means, do we need also the
update method without preserving a previous version? If yes, we can add a separate flag to the
update method, which makes changes in the current version of the entity without creating a new version.