Add endpoint for retrieving # of finished challenges
Closed this issue · 1 comments
omaryasser commented
The number of finished challenges can be calculated by summing up the score of the user in all of the groups that they have joined.
omaryasser commented
That's getting super important.
As currently the frontend is what computes the number of finished challenges. It computes it by iterating over the user challenges. Which means that the backend needs to send all of the user challenges to the client, which slows the network requests significantly as the user challenges increase.