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

Add a migrator to update backlinks with included/displayed documents for existing pages

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      After XWIKI-4906 was implemented, new pages would benefit from the enhanced backlinks list (that now contains included/displayed documents), but existing pages would still contain the old (non-updated) list of backlinks stored in the database.

      We need a migrator that goes through all pages (preferably only the ones containing include/display macros) and calls XWikiStoreInterface#saveLinks in order to trigger an update of the backlinks, as suggested by tmortagne.

      A current usecase affected by this is the migrator to Nested Pages which does not update includes/displays when it moves/renames pages.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              enygma Eduard Moraru
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: