XWiki Platform
  1. XWiki Platform
  2. XWIKI-13164

Be able to also restore deleted children pages when restoring a parent nested page

    Details

    • Difficulty:
      Unknown
    • Similar issues:

      Description

      To reproduce create nested pages a/b/c
      Go to nested page a and delete it. Make sure you check “Affect children”.
      You now decide you shouldn’t have deleted page a and its children.
      You go back to page a and restore it.

      Actual result: page a is restored.

      Expected result: restoring page a and having a checkbox that allows you to restore the children pages as well.

        Issue Links

          Activity

          Hide
          Eduard Moraru added a comment - - edited

          Current progress:

          • The DeletedDocuments tab in the Documents Index now contains a "Delete Batch ID" column that allows filtering for all documents deleted in the same batch:
          • When clicking the ID of a batch, the "restore" (undelete) view is displayed for the associated deleted document, offering the option to restore the entire batch of documents of which it is part of.
          • Expanding the option displays information about the batch and a livetable with all the documents from the batch that will be restored if the option is selected. Individual actions are also possible on documents of the batch, for convenience.
          • Clicking restore will either:
            • restore just the current document (if the batch option is not selected) or will
            • restore the entire batch (including the current document, since it is a part of it)

          What is currently missing is a RestoreJob+UI that would perform the restore work in a asynchronous fashion, with progress report. Right now, the work is synchronous, blocking the browser's response until the operation is complete.

          Show
          Eduard Moraru added a comment - - edited Current progress: The DeletedDocuments tab in the Documents Index now contains a "Delete Batch ID" column that allows filtering for all documents deleted in the same batch: When clicking the ID of a batch, the "restore" (undelete) view is displayed for the associated deleted document, offering the option to restore the entire batch of documents of which it is part of. Expanding the option displays information about the batch and a livetable with all the documents from the batch that will be restored if the option is selected. Individual actions are also possible on documents of the batch, for convenience. Clicking restore will either: restore just the current document (if the batch option is not selected) or will restore the entire batch (including the current document, since it is a part of it) What is currently missing is a RestoreJob+UI that would perform the restore work in a asynchronous fashion, with progress report. Right now, the work is synchronous, blocking the browser's response until the operation is complete.
          Hide
          Eduard Moraru added a comment - - edited

          Added a RestoreJob and UI to show progress of the restore operation.

          • Job started:
          • Job completed:
          • Job log:
          Show
          Eduard Moraru added a comment - - edited Added a RestoreJob and UI to show progress of the restore operation. Job started: Job completed: Job log:
          Hide
          Eduard Moraru added a comment -
          • Showing the "Deleted Batch ID" column in the document-level recycle bin, to improve discoverability of the restore batch feature.
            • Non-admin users (that can not restore documents) will not see this new column.
          Show
          Eduard Moraru added a comment - Showing the "Deleted Batch ID" column in the document-level recycle bin, to improve discoverability of the restore batch feature. Non-admin users (that can not restore documents) will not see this new column.
          Hide
          Eduard Moraru added a comment -
          • Added job grouping at the wiki level to avoid, for example, trying to restore a document that is being deleted at the same time. The downside is that while restoring documents inside a wiki, all other refactoring jobs affecting documents in the same wiki will have to wait for the restore to finish, but there is not much we can do about it.
          Show
          Eduard Moraru added a comment - Added job grouping at the wiki level to avoid, for example, trying to restore a document that is being deleted at the same time. The downside is that while restoring documents inside a wiki, all other refactoring jobs affecting documents in the same wiki will have to wait for the restore to finish, but there is not much we can do about it.

            People

            • Assignee:
              Eduard Moraru
              Reporter:
              Silvia Rusu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: