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

    Details

    • Difficulty:
      Unknown
    • Similar issues:

      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 Thomas Mortagne.

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              enygma Eduard Moraru
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: