Move current units calculation in the subscription card to backend
Problem
As mentioned in this comment, currently we compute the total seats / storage / minutes / events for various products like duo pro, compute minutes, storage, product analytics on the frontend. Instead we should figure out if it makes sense to move this computation to the backend.
Proposal
Maybe we can move this computation to product
model and then expose it to the frontend via product_presenter
?
There maybe some conditionals that we need to consider similar to that done for main product.
Result
Next steps (if any)
How will we measure success?
Edited by Sharmad Nachnolkar