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

Add new field "totalValueForPeriod" into the billable usage model

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • 2024-04-23 - API
    • None
    • None
    • None

      At the moment, the totalValueForPeriod is calculated in the BillableUsageController controller adding a dependency from the controller to the TallySnapshotRepository.

      Since we're moving the billable usage components into a single service out of the monolith, we need to remove the dependency from the controller of the TallySnapshotRepository.

      To do so, we need to eagerly calculate the totalValueForPeriod value in the TallySummaryMessageConsumer consumer.

      Acceptance Criteria

      • The billable usage model should contain a new field for the "totalValueForPeriod" value that should be calculated in the TallySummaryMessageConsumer consumer.
      • Remove the usages of the TallySnapshotRepository repository in the BillableUsageController controller. to be done in SWATCH-2368

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

                Created:
                Updated:
                Resolved: