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

Add sources API flag indicating data is processing or not available

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • 2021Q1
    • None
    • API
    • False
    • False
    • Similar to the inactive sources feature, the sources API would return a flag indicating source data is being processed or not available. Thus, we wouldn't need to generate multiple cost reports to know if there is data available.
    • Undefined
    • COST Sprint 59

      As a user, I want the overview page to show a message indicating that Cost management is waiting for/processing data for my source. (Either for a newly added source or the first of the month when report data is not available.) That is, instead of viewing multiple cards, all with empty charts.

      Similar to the `active` flag, used by the inactive sources feature, we would like the sources API to return a flag indicating source data is available for the current month. Thus, we wouldn't need to generate multiple report requests only to have empty data returned.

      Below is a mock showing some empty states we would like to display in the UI.

      https://marvelapp.com/prototype/9404edb/screen/74151763

      https://marvelapp.com/prototype/9404edb/screen/74204817

      FYI, the details pages infer that the cost API returns an empty data array because Cost Management is processing data; although, this may not always be a correct assumption. This is more difficult to do for the overview page because each card makes multiple requests to different APIs, in addition to requesting the current and previous months data.

      A sources API flag would simplify all this and allow the overview to display custom messages for each tab and perspective option, since a source is associated with each of these types.

       

      Acceptance Criteria:

      • Boolean flag (current_month_data) added to /sources response.
        • True: At least one report manifest for current billing period has completed processing (CostUsageReportManifest.manifest_completed_datetime)

        1. no ocp provider data.png
          285 kB
          Daniel Labrecque
        2. no provider data.png
          295 kB
          Daniel Labrecque

              docurtis Doug Curtis (Inactive)
              dlabrecq@redhat.com Daniel Labrecque
              Andrew Berglund (Inactive), Doug Curtis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: