text icon indicating copy to clipboard operation
text copied to clipboard

Gracefully handle version restore

Open juliusknorr opened this issue 2 years ago • 2 comments

When restoring a version through the web UI we should make sure to handle this without a conflict.

Similar how https://github.com/nextcloud/richdocuments/pull/3152 does this, we can use the events to detect the restore from https://github.com/nextcloud/server/pull/40184

juliusknorr avatar Sep 09 '23 07:09 juliusknorr

My suggestion is reusing (and some modify) component CollisionResolveDialog to handle the version restoring action.

luka-nextcloud avatar Oct 04 '23 13:10 luka-nextcloud

The conflict dialog should already appear as the file is changed on the backend, but my idea was to skip that and resolve automatically as the restore is already a decition the user makes to overwrite the file content.

We should:

  • Make sure we somehow notify other users about the restore
  • Just apply the change without showing the conflict dialog

juliusknorr avatar Jan 26 '24 13:01 juliusknorr