Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-2289

Update billable usage when the billable usage component receives notification

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • 2024-06-12 - API
    • None
    • None
    • None
    • 5

      In order to update individual billable usage records when an aggregate fails or succeeds...

      Add a new topic named `platform.rhsm-subscriptions.billable-usage.status`

      Add a listener for this topic which expects BillableUsageAggregate messages.

      The listener will update all billable usage IDs for an aggregate with that aggregate's `status`, `error_code` and `billed_on`. Status codes & error codes are defined in SWATCH-2287

      Done:

      • BillableUsageAggregate received updates all affected billable usage UUID records.
      • Dev to provide the SQL that can be used for testing purposes. 
      • This card requires manual verification in the database until SWATCH-2290
      • Topic is created in stage & production & the hash for the topic creation image has been updated for prod. 

              kflahert@redhat.com Kevin Flaherty
              khowell@redhat.com Kevin Howell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: