Problem
All the exercises are sent to the frontend and only a portion is rendered for the user. This does not only impact the performance on mobile devices, but also waste the user bandwidth.
Steps to reproduce
- Sign in with
admin user and go to /exercises/js0
- Go to
/curriculum/js0/mentor and remove an exercise
- Go to
/exercises/js0 and inspect the getExercises query request
- Notice how it has all the exercises even the removed one
Expected behavior
Backend should only send exercises that are not removed and are for the current lesson. If the user is taking the exercises of JS1, it should send the exercises for JS1
Actual behavior
Backend sends all the exercises to the client (All lessons exercises & removed exercises)
Problem
All the exercises are sent to the frontend and only a portion is rendered for the user. This does not only impact the performance on mobile devices, but also waste the user bandwidth.
Steps to reproduce
adminuser and go to/exercises/js0/curriculum/js0/mentorand remove an exercise/exercises/js0and inspect thegetExercisesquery requestExpected behavior
Backend should only send exercises that are not removed and are for the current lesson. If the user is taking the exercises of JS1, it should send the exercises for JS1
Actual behavior
Backend sends all the exercises to the client (All lessons exercises & removed exercises)