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

Disable extracting title from document content by default

    Details

    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      Description

      See the VOTE and explanations at http://markmail.org/message/lfzwyq6aaftbzhbs

      The rationale is:

      • This is costing more than it should. It needs parsing the document content to
        get its XDOM and then to traverse it to find Heading blocks. When we display doc
        titles in lists (in livetables for example or in the activity stream) it costs a
        lot to do so.
      • Our implementation is broken since if you use an include macro that generates
        a heading for ex, it won’t be taken into account since we don’t apply
        transformations ATM when computing the title since it would be even more
        expensive.

      Since 6.x is about performance I believe this would be a good step forward.

      Now in order to handle backward compatibility. I propose that we:

      • Add a legacy configuration parameter to keep the behavior (but off by
        default). This would be in order to let users using this feature convert their
        wiki
      • Move the code to a legacy module (I hope it’s possible)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                vmassol Vincent Massol
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: