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

SWATCH producers services should ignore old messages

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • None

      • Create a new property in the billable usage and billable usage aggregate models "updated_at" of type timestamp.
      • Propagate the updated_at column created in SWATCH-3234 in the billable usage and billable usage aggregate messages that are sent to the topics "platform.rhsm-subscriptions.billable-usage" and "platform.rhsm-subscriptions.billable-usage-hourly-aggregate".
      • Add a new configuration property in the services swatch-producer-aws/swatch-producer-azure/swatch-producer-red-hat-marketplace to set the time when a billable usage entity is considered old. By default it's 1 day.
      • Then, swatch-producer-aws/swatch-producer-azure/swatch-producer-red-hat-marketplace should ignore messages older than the configured property. (updated_at - now() > configured_property)
      • Write component tests for each swatch producer service to verify the new logic.

              Unassigned Unassigned
              jcarvaja@redhat.com Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: