Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24298

Add hasContent enricher

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 10.3
    • Component/s: Rest API

      Description

      Add an hasContent enricher server side to tell if a `Folderish` or `Collection` container does have content (boolean).

      On Web UI, this is yet another tiny thing to load when it comes to fetch a document but at the same time we could leverage it in our table, grid, list elements when it comes to display a Folder/Collection in Web UI: this could spare us useless requests.

      We must also deprecate children json enricher

      ChildrenJsonEnricher.java relies on

      wrapper.getSession().getChildren(document.getRef());
      

      which fetches all children -> does not scale.

      Better rely on search endpoints with document_content page provider or @children adapter which provides pagination.

      + add a comment in https://doc.nuxeo.com/nxdoc/content-enrichers/

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d