-
Task
-
Resolution: Done
-
Undefined
-
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 inSWATCH-2368
- blocks
-
SWATCH-2368 Move billable-usage components from monolith to billable-usage service
- Closed