Tracking FE computations for the analytics space
Description
We are currently performing a large number of data transformations / computations on the frontend for cycle analytics. This is specifically true for the duration scatter plot but may be applicable elsewhere too.
Example
In order to display the duration chart, duration data needs to be fetched individually for each stage. If there are 8 stages, this means that 8 separate API calls will be made. Once all the data has been retrieved, it then needs to be grouped by date, totalled and transformed into a format accepted by the echarts implementation.
There is also an open issue which will add further computations to the frontend in order to calculate and draw a median line onto the chart #36675 (closed)
Problems
Complex frontend code
Debugging is harder as logic is split across FE / BE
Potential poor browser experience as large amounts of data need to processed client side