Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep state of undone timeline revisions #5630

Merged
merged 6 commits into from
Mar 2, 2023

Conversation

duartegalvao
Copy link
Member

@duartegalvao duartegalvao commented Jan 19, 2023

Depends on #5612

This PR turns the "Undo revision" feature of the Editing Timeline into a "soft" undo, keeping all files and comments available in the timeline:
image

Progress:

  • Change revision's state to Undone instead of deleting it
  • Keep all revision comments and display them as undone
  • Test all undo scenarios
  • Test microsservice integration

@ThiefMaster
Copy link
Member

While testing this I ended up with some cases with broken states, some not recoverable from the UI...

  • "you cannot do this on this revision" error when doing "make changes and accept"
  • getting stuck in a state where neither the editor nor the submitter could do anything after undo

The memoize_request in valid_revisions was causing the newly created
revision to not be listed there, thus publishing the editable failed
because the ensure_latest_revision failed.
@ThiefMaster ThiefMaster merged commit 6433803 into indico:master Mar 2, 2023
@ThiefMaster ThiefMaster deleted the undo-revisions branch March 2, 2023 16:09
bpedersen2 pushed a commit to bpedersen2/indico that referenced this pull request Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done 🚀
Development

Successfully merging this pull request may close these issues.

2 participants