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

Fix hard maximum number of results of operation Collection.GetDocumentsFromCollection

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.10, 2021.1
    • Fix Version/s: 2021.x, 11.x
    • Component/s: Automation

      Description

      Operation Collection.GetDocumentsFromCollection returns a maximum number of results of 50, as it calls page provider default_content_collection, which is configured with a page size of 50, and does not offer any parameter to change the page size or to browse the pagination. This can be impeading when calling the operation from an automation chain/script and wants to retrieve all the documents in a collection.

      Workaround: use operation Repository.PageProvider. e.g.:

      var docs = Repository.PageProvider(input, { 'providerName': 'default_content_collection', 'pageSize': 0, 'queryParams': collection.id });
      

      Request is to add a "pageSize" parameter which would allow to fetch more collections when calling the operation Collection.GetDocumentsFromCollection

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vdutat Vincent Dutat
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: