Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-2164

Add limit param to the sources API request

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 2021Q4
    • None
    • UI
    • None

      Noticed an issue with the overview and details pages, using the insights-qa user. We recently added 15 sources to test a bug, but now those pages display an empty state indicating we're processing data.

      For the overview and details pages, the UI looks at the current_month_data property returned by the sources API. By default, the API only returns 10 items, and none of those sources have data. We need to look at all the sources.

      To resolve this issue, we should add the `limit=100` param to the sources API request. For example:

      api/cost-management/v1/sources/?type=OCP&limit=100

            dlabrecq@redhat.com Daniel Labrecque
            dlabrecq@redhat.com Daniel Labrecque
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: