[BE] Cycle analytics endpoint for top N labels
Problem to solve
Follow on from the discussion on 400 Error on cycle analytics page
We should add a new cycle analytics endpoint that returns the top N labels for a group. By default this should return the top 10 labels, if we need to configure a variable number of labels that can be addressed in the future.
Further details
The labels returned will be used to set the default set of pre-selected labels for the tasks by type chart and will help provide a solution for the problem described in #38260 (closed)
Documentation
Testing
Links / references
Edited by Ezekiel Kigbo