Uploaded image for project: 'Red Hat Insights Engineering'
  1. Red Hat Insights Engineering
  2. RHINENG-18431

Compliance API is not returning pagination in metadata

XMLWordPrintable

    • False
    • False
    • Hide

      None

      Show
      None
    • 0

      ** Note that this is a public ticket, please refrain from adding any sensitive data. **

      Metadata information returned via Compliance is not returning page information. This is inconsistent with other apps such as vulnerability. For example, metadata for vulnerability will report;

          "meta": {
              ...        
              "limit": 10,
              "offset": 0,
              "page": 1,
              "page_size": 10,
              "pages": 246,
              ...
              "total_items": 2458

      But for compliance we get something like this;

          "meta": {
              "total": 114,
              "filter": "result=fail AND severity<>unknown",
              "limit": 1,
              "offset": 0
          }, 

      Notice for Compliance no data is omitted and there is no page information.

      Not showing the page information makes it difficult to script automatically going through the pages of results.

              eshamard Egor Shamardin
              rhn-support-pdudley Paul Dudley
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: