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

Remove granularity filter for PAYG products in swatch-utilization validation

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • swatch-utilization
    • None
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Impediment
    • subs-swatch-lightning

      We need to remove a workaround filter that was added to the utilization summary validator to handle unexpected snapshot data.

      Currently, UtilizationSummaryPayloadValidator includes a filter (lines 80-87) that enforces PAYG products to only accept HOURLY granularity and non-PAYG products to only accept DAILY granularity. This filter was necessary because swatch-tally was emitting snapshots for PAYG products with both HOURLY and DAILY granularity, when only HOURLY was expected for PAYG.

      The root cause of this issue is being addressed in SWATCH-4322, which will fix swatch-tally to emit the correct granularity for each product type. Once SWATCH-4322 is deployed and verified, we can safely remove this filter entirely from UtilizationSummaryPayloadValidator.java.

      Acceptance Criteria

      • Update swatch-utilization to remove the mentioned filter and associated tests
      • Add an IQE test if it does not exist yet to ensure that we don't process the DAILY snapshots for payg products

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

                Created:
                Updated: