Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-21078

increase default max items per page for components and assets resource

    Details

    • Type: Improvement
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.18.1
    • Fix Version/s: None
    • Component/s: REST
    • Labels:
    • Notability:
      4

      Description

      When using the Nexus /assets or /components API to get lists of assets and components the result set is limited to 10 items per page.

      https://github.com/sonatype/nexus-public/blob/master/components/nexus-repository/src/main/java/org/sonatype/nexus/repository/rest/internal/resources/AssetsResource.java#L107

      https://github.com/sonatype/nexus-public/blob/master/components/nexus-repository/src/main/java/org/sonatype/nexus/repository/rest/internal/resources/ComponentsResource.java#L140

      The max items per page are reportedly too low to be practical for general use and appear to have been arbitrarily chosen when pagination was first introduced.

      Expected

      Increase the hard coded maximum items per page for pagination resources to a more practical default value.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Rich Seddon Rich Seddon
              Votes:
              12 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title