Skip to content

Filter exercises in the backend #2676

@flacial

Description

@flacial

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

  1. Sign in with admin user and go to /exercises/js0
  2. Go to /curriculum/js0/mentor and remove an exercise
  3. Go to /exercises/js0 and inspect the getExercises query request
  4. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    perfPerformance related issues

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions