Structs§
- Course
Instance Exercise Metrics - Course
Instance User Points - Course
Instance User Points Inner - Database
User Course Instance Chapter Exercise Progress - Ewus
Course - Ewus
Exam - Exam
User Points - Exam
User Points Inner - Exercise
User Counts - Exercise
With User State - Convenience struct that combines user state to the exercise.
- Exported
User Exercise State - User
Chapter Metrics - User
Course Instance Chapter Exercise Progress - User
Course Instance Metrics - User
Course Instance Progress - User
Exercise State - User
Exercise State Update
Enums§
- Course
Instance OrExam Id - Either a course instance or exam id.
- Ewus
Context - Ewus
Course OrExam - Reviewing
Stage - Tells what stage of reviewing the user is currently in. Used for for peer review, self review, and manual review. If an exercise does not involve reviewing, the value of this stage will always be
NotStarted
.
Functions§
- get_
all_ for_ user_ and_ course_ instance_ or_ exam - get_
by_ id - get_
by_ ids - get_
course_ instance_ metrics - get_
course_ instance_ metrics_ indexed_ by_ module_ id - get_
course_ users_ counts_ by_ exercise - get_
or_ create_ user_ exercise_ state - get_
or_ create_ user_ exercise_ state_ for_ users - get_
single_ module_ course_ instance_ metrics - Gets course instance metrics for a single module.
- get_
user_ course_ instance_ chapter_ exercises_ progress - get_
user_ course_ instance_ chapter_ metrics - get_
user_ course_ instance_ metrics - get_
user_ course_ instance_ metrics_ indexed_ by_ module_ id - get_
user_ course_ instance_ progress - get_
user_ exercise_ state_ if_ exists - get_
user_ total_ course_ points - get_
user_ total_ exam_ points - Gets the total amount of points that the user has received from an exam.
- get_
users_ current_ by_ exercise - merge_
modules_ 🔒with_ metrics - stream_
course_ instance_ points - stream_
exam_ points - stream_
user_ exercise_ states_ for_ course - update
- TODO: should be moved to the user_exercise_state_updater as a private module so that this cannot be called outside of that module
- update_
exercise_ progress - TODO: should be removed
- update_
reviewing_ stage - upsert_
selected_ exercise_ slide_ id