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

Add support for passing advanced configuration when using the live data macro

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.10.1
    • Fix Version/s: 12.10.3, 13.0
    • Component/s: Live Data
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Easy
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Would be nice to be able to support passing the live data configuration JSON as content of the live data macro.

      {{liveData}}
      {
        query: {...},
        data: {...},
        meta: {...}
      }
      {{/liveData}}
      

      This would bring two important benefits:

      • support for in-line data source
      • ability to perform advanced configuration that is otherwise hard / impossible to do with the macro parameters

      The idea is that for the most common use cases it should be enough to use the macro parameters, while for advanced / complex / niche use cases you can pass the live data configuration JSON as macro content. This is needed for instance in order to be able to replace some of the existing live tables where the configuration is not generic enough to be included in the data source, so it needs to be explicit / specified in the live data macro call.

      When both macro parameters and macro content is used then we can merge the configuration, giving priority to the macro parameters.

        Attachments

          Activity

            People

            Assignee:
            mflorea Marius Dumitru Florea
            Reporter:
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: