backend icon indicating copy to clipboard operation
backend copied to clipboard

Blocking assessments?

Open ning-y opened this issue 6 years ago • 2 comments

Is it possible to make some assessments "blocking", i.e. preventing access to future assessments?

An example of this could be Paths. A Path that follows a lecture could block a corresponding Mission.

A little misunderstanding, regarding my example. More concretely: Lecture L2 is on 22/8, and Path P2A opens right after the lecture. Mission M2A also opens on 22/8 after the lecture. If we would have "blocking" assessments as I'm suggesting, we could arrange M2A to open for a particular student only after she has completed P2A. This would allow us to force students to complete paths without "spending" any grades on them.

Originally opened by Prof @martin-henz, at https://github.com/source-academy/cadet-frontend/issues/201. Moving here since implementation depends more on the backend.

ning-y avatar Jul 16 '18 07:07 ning-y

  1. Sort all assessments by open datetime,
  2. Find the datetime of the earliest unattempted path,
  3. Filter all assessments by datetime less than (2),
  4. Only send the filtered list from GET /assessments

Would need to implement similar logic to restrict access to 'blocked' assessments in GET /assessments/{assessmentId} though. Thoughts from the backend team?

ning-y avatar Jul 20 '18 04:07 ning-y

I still think this is a really nice feature. Let's see if we can implement this at some point.

martin-henz avatar Feb 13 '19 13:02 martin-henz