You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
I looked into this issue and it looks like each exercise has a removedAt flag (of type timestamp) in the database.
We could keep this functionality as-is or have the remove exercise function outright delete the exercise from the database (and eliminate the removedAt column).
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
admin
user and go to/exercises/js0
/curriculum/js0/mentor
and remove an exercise/exercises/js0
and inspect thegetExercises
query 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)
The text was updated successfully, but these errors were encountered: