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

Refactoring jobs don't take into account wiki syntax in Macros

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.4
    • Fix Version/s: 13.4-rc-1
    • Component/s: Refactoring
    • Labels:
      None
    • Tests:
      Unit, Integration
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Right now if you have some wiki links inside a {{info}} macro for example (or inside a {{html wiki=true}} macro) then they are opaque to the refactoring operations. The consequence is that you get broken links when you move pages for example since the links are not rewritten.

      2 ideas:

      • Idea 1: Have the refactoring jobs know some well-known macros and add support for them (i.e. update their content)
      • Idea 2: Introduce some new API in the Macro interface (or introduce a RefactorableMacro interface) to let the macro implement what it should do during refactoring operations (like a move/rename).

      WDYT?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              surli Simon Urli
              Reporter:
              vmassol Vincent Massol
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: