Show other prereqs that need to be met when using /courses unlocks #135

Open
opened 2026-03-30 14:50:56 +00:00 by Ghost · 2 comments
Ghost commented 2026-03-30 14:50:56 +00:00 (Migrated from codeberg.org)

Example: one of the courses /courses unlocks 15-122 returns is 02-450: Automation of Scientific Research. That course has the prerequisites (10-315 or 10-701) and (15-122).

We would like the /courses unlocks 15-122 command to also show other required prereqs. From the example earlier, under 02-450, we would display a note such as

Also requires 10-315 or 10-701

As another example, let's take a look at 10-301: Introduction to Machine Learning (Undergrad), which has the prereqs

(15-121 or 15-122) and (15-151 or 21-127 or 21-128) and (36-217 or 36-235 or 15-359 or 36-218 or 21-325 or 36-220 or 15-259 or 36-219 or 36-225)

Running /courses unlocks 15-122 should have 10-301 with this note:

Also requires (15-151 or 21-127 or 21-128) and (36-217 or 36-235 or 15-359 or 36-218 or 21-325 or 36-220 or 15-259 or 36-219 or 36-225)

Optional; can be done later:
Add a button "Hide other prereqs" to hide these other prereqs and revert to what we had originally. This can be toggled back with "Show other prereqs".

Example: one of the courses `/courses unlocks 15-122` returns is [02-450: Automation of Scientific Research](https://www.courses.scottylabs.org/course/02-450). That course has the prerequisites `(10-315 or 10-701) and (15-122)`. We would like the `/courses unlocks 15-122` command to also show other required prereqs. From the example earlier, under 02-450, we would display a note such as > Also requires 10-315 or 10-701 As another example, let's take a look at [10-301: Introduction to Machine Learning (Undergrad)](https://www.courses.scottylabs.org/course/10-301), which has the prereqs ``` (15-121 or 15-122) and (15-151 or 21-127 or 21-128) and (36-217 or 36-235 or 15-359 or 36-218 or 21-325 or 36-220 or 15-259 or 36-219 or 36-225) ``` Running `/courses unlocks 15-122` should have 10-301 with this note: > Also requires (15-151 or 21-127 or 21-128) and (36-217 or 36-235 or 15-359 or 36-218 or 21-325 or 36-220 or 15-259 or 36-219 or 36-225) **Optional; can be done later:** Add a button "Hide other prereqs" to hide these other prereqs and revert to what we had originally. This can be toggled back with "Show other prereqs".
Ghost commented 2026-03-30 22:13:21 +00:00 (Migrated from codeberg.org)

Note that not all courses have prereqs in CNF: take 76-389 for example, which requires

(76-101) or (76-102) or (76-106 and 76-107) or (76-106 and 76-108) or (76-107 and 76-108)
Note that not all courses have prereqs in CNF: take 76-389 for example, which requires ``` (76-101) or (76-102) or (76-106 and 76-107) or (76-106 and 76-108) or (76-107 and 76-108) ```
Ghost commented 2026-03-30 22:15:56 +00:00 (Migrated from codeberg.org)

i think it's guaranteed to be either CNF or DNF though

i think it's guaranteed to be either CNF or DNF though
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ScottyLabs/dalmatian#135
No description provided.