Comment

Avatar

Community Advisor

05-10-2020

Hi @hamidk92094312 ,

I can imagine or put design for this something like below.

  • On clicking of the delete button, just move Asset to the Recycle Bin/Trash folder
  • While moving add a property to the asset, the property name is something like source="<path of original location>"
  • Set expiry time out for the deleted Asset to some amount, ex: 30days
  • If content author select Asset to restore, move Asset to the original location by reading source property, we do not need to worry about versioning here, the latest version will get published automatically.
  • To avoid version conflict, when the Asset is in Recycle bin, we should not give an option to edit the Asset/Page. All assets which are in Recycle Bin should be read only.
  • We know that whenever we move an Asset it will not delete any versions, it still maintains old versions, so I feel we do not need to worry about calculate and maintain the same versioning strategy each time files/pages restore 
  • keeping a specific number of versions for a specific number of days may not impact this because when we click on restore we will load the latest version and also after moving Asset to Recycle Bin the versioning history still exists for that Asset/Page