Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15748

Refactoring listeners should also be used in case of non-interactive jobs

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.9
    • Fix Version/s: None
    • Component/s: Refactoring
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      We currently have at least two refactoring listeners used to prevent users when they are doing potentially breaking refactoring:

      • XClassDeletingListener: used if a document involved in the refactoring contains an used XClass
      • DocumentsDeletingListener: used if a document involved in the refactoring belongs to an extension

      Both listeners are used in interactive jobs to propose an UI to the user, allowing him to change the selection of pages before the refactoring. However they are currently bypassed for non-interactive jobs.

      We should also provide a way to warn users in case of non interactive jobs.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              surli Simon Urli
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: