Expand description
Contains helper functions needed for student view
Structs§
- Certificate
Grid Row - Completion
Grid Row - Course
Student List Row - One row of the paginated student identity list (one row per distinct enrolled user).
- Course
Students Progress Structure - Course-level progress structure for the Progress tab. Does not depend on which students are on the current page, so it is fetched once and cached per course (not per identity page).
- Course
Students Progress Users - Per-user progress detail for the Progress tab, scoped to the requested
user_ids. - Students
List Page - A page of the student identity list plus the total number of pages for the current filters.
Functions§
- escape_
like_ 🔒pattern - Escapes the
LIKE/ILIKEmetacharacters\,%and_so a search string is matched literally (used together withESCAPE '\'in the query). - get_
certificates_ grid_ for_ users - Returns the latest course certificate (if any) for each of the given users, keyed by
user_id. - get_
completions_ grid_ for_ users - Returns student × module completion rows for the given users, keyed by
user_id. - get_
course_ students_ page - Returns a filtered, sorted, paginated page of the course’s enrolled users (identity only).
- get_
progress_ for_ users - Returns per-user chapter progress and locking statuses for the given
user_ids. - get_
progress_ structure - Returns the course-level chapter structure shared by every page of the Progress tab.