Skip to content

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Aug 31, 2023

Fixes #35511

Slightly simplified version of #26023

Since version preview is now implemented in viewer, we only need an event before a restore attempt and after success/failure.

This is needed for restoring a version while having an ongoing editing session e.g. with Collaboera as we will need to save current changes first, let Collabora handle the restore in order to have a smooth transition from the old to the restored document.

Usage can be seen in https://github.com/nextcloud/richdocuments/blob/chore/refactor-iframe/src/mixins/version.js

Checklist

@juliusknorr juliusknorr added enhancement 3. to review Waiting for reviews labels Aug 31, 2023
@juliusknorr juliusknorr added this to the Nextcloud 28 milestone Aug 31, 2023
@juliusknorr
Copy link
Member Author

/backport to stable27

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
I wonder how far we should allow ourselves to go from standard events like files:node:moved

@juliusknorr juliusknorr force-pushed the enh/files_versions_events-vue branch from aa6eb35 to 9ef6dc7 Compare August 31, 2023 19:52
@juliusknorr juliusknorr force-pushed the enh/files_versions_events-vue branch from 9ef6dc7 to beb2356 Compare September 6, 2023 06:29
@max-nextcloud max-nextcloud force-pushed the enh/files_versions_events-vue branch from beb2356 to bb41932 Compare September 6, 2023 11:29
@max-nextcloud
Copy link
Contributor

/compile

Signed-off-by: nextcloud-command <[email protected]>
@max-nextcloud max-nextcloud merged commit 8ac768c into master Sep 6, 2023
@max-nextcloud max-nextcloud deleted the enh/files_versions_events-vue branch September 6, 2023 13:11
@backportbot-nextcloud
Copy link

The backport to stable27 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable27
git pull origin stable27

# Create the new backport branch
git checkout -b fix/foo-stable27

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123

# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable27

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

@juliusknorr
Copy link
Member Author

/backport bb41932 to stable27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reload editor/viewer after restoring a version

6 participants