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

Provide source uuid in Reports API

XMLWordPrintable

    • COST Sprint 46, COST Sprint 47, COST Sprint 48

      Describe the bug

      The cost management UI details page gives a kebab option to View all price lists (which needs to change to cost models now). The backend can/should return the source uuid in the reports API data when grouping by cluster (for OpenShift) or account (for AWS/Azure). This way the UI can generate a link to the cost model that cluster/account is using.

      To Reproduce

      Steps to reproduce the behavior:
      1. Go to https://cloud.redhat.com/cost-management/details/aws?group_by[account]=*&order_by[cost]=desc
      2. Click on kebab
      3. Click View all price lists
      4. See undesirable page

      Expected behavior

      If the cluster/account is attached to a cost model the link should take them to the cost model. For the backend's part, we should deliver the UUID of the source so that the UI can link to the correct cost model.

      Screenshots

      Screen Shot 2020-04-22 at 11 32 44 AM

      Additional considerations

      Update to AWS, Azure, OpenShift, OpenShift on AWS/Azure/All daily summary models to include source uuid.
      Update daily summary SQL for all of the above mentioned to add source UUID
      Update provider maps to include source uuid.

              myersco Cody Myers
              aberglun@redhat.com Andrew Berglund (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: