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

Live Data footnotes are collected while rendering the cells

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • 18.10.0-rc-1
    • 17.10.0
    • Live Data
    • None
    • Unknown

    Description

      Live Data footnotes (for instance the one explaining that some values cannot be viewed) are added to the footnotes list from inside computed properties of the cells (BaseDisplayer isViewable, DisplayerDocTitle html). Writing reactive state while computing invalidates the other cells that read the footnotes list and causes an extra update after each fetch.

      The footnotes list also uses a key built from a prefix field that footnotes do not have, so every key ends with "undefined".

      Proposal

      • Compute the needed footnotes once per entries update, outside the cell rendering.
      • Key the footnotes on a field they actually have.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: