SonarQube
  1. SonarQube
  2. SONAR-3257

Drop the limitation of 5000 results in the web service /api/violations (by migrating to the /api/issues/search web service)

    Details

    • Number of attachments :
      0

      Description

      Pagination of results should be implemented.

        Activity

        Hide
        Simon Brandhof added a comment -

        The new web service /api/issues/search supports the parameters :

        • pageIndex. Default value is 1.
        • pageSize is the maximum number of results per page. Default value is 100, maximum value is 1000.

        Pagination is disabled by default when the parameter "components" has a single value.

        The response repeats the two request parameters and provides also :

        • the total number of results
        • the number of pages

        Example :

        paging": {
        
            "pageIndex": 1,
            "pageSize": 100,
            "total": 206,
            "pages": 3
        
        }
        
        Show
        Simon Brandhof added a comment - The new web service /api/issues/search supports the parameters : pageIndex. Default value is 1. pageSize is the maximum number of results per page. Default value is 100, maximum value is 1000. Pagination is disabled by default when the parameter "components" has a single value. The response repeats the two request parameters and provides also : the total number of results the number of pages Example : paging": { "pageIndex": 1, "pageSize": 100, "total": 206, "pages": 3 }
        Hide
        Freddy Mallet added a comment -

        Tested successfully with 6'000 issues !

        Show
        Freddy Mallet added a comment - Tested successfully with 6'000 issues !
        Hide
        Freddy Mallet added a comment -

        Would be great to support the 'MAX' value of the 'pageSize' parameter, meaning -> return me as many issues as possible for each HTTP request.

        Show
        Freddy Mallet added a comment - Would be great to support the 'MAX' value of the 'pageSize' parameter, meaning -> return me as many issues as possible for each HTTP request.
        Hide
        Simon Brandhof added a comment -

        We won't support the value "MAX", but the max size is used when the value is zero or negative.

        Show
        Simon Brandhof added a comment - We won't support the value "MAX", but the max size is used when the value is zero or negative.
        Hide
        Freddy Mallet added a comment -

        Manually tested !

        Show
        Freddy Mallet added a comment - Manually tested !
        Hide
        Julien Lancelot added a comment -

        IT added

        Show
        Julien Lancelot added a comment - IT added

          People

          • Assignee:
            Simon Brandhof
            Reporter:
            Simon Brandhof
          • Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: