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

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

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 10.9
    • Refactoring
    • None
    • Unknown

    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

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

            Dates

              Created:
              Updated: