Skip to main content

Module course_modules

Module course_modules 

Source

Structs§

AutomaticCompletionRequirements
CourseModule
Based on CourseModulesSchema but completion_policy parsed and addded (and some not needeed fields removed).
CourseModuleCreditRegistrationConfig
Per-module credit-registration configuration: the rollout switch and the module’s own fields merged with its course_module_suotar_configurations row. Every field of that row is optional here because a module with no configuration row is a valid, unconfigured module.
CourseModulesSchema 🔒
The subset of course_modules columns CourseModule is built from; the credit-registration ones are read through CourseModuleCreditRegistrationConfig, hence no SELECT * here.
ModifiedModule
ModuleSizeCounts
How many chapters and exercises a course module contains. Used for deciding whether the module is small enough to be exempt from the minimum cheater threshold.
ModuleUpdates
NewCourseModule
NewModule

Enums§

CompletionPolicy

Functions§

delete
get_all_suotar_enabled
Every module opted in to credit registration via Suotar, paused ones included.
get_all_uh_course_codes_for_open_university
get_by_course_id
get_by_course_id_as_map
Gets course modules for the given course as a map, indexed by the id field.
get_by_course_id_only_with_open_chapters
get_by_course_ids
Batched get_by_course_id: modules for many courses in one query, to group in memory instead of one query per course.
get_by_exercise_id
Gets course module where the given exercise belongs to. This will result in an error in the case of an exam exercise.
get_by_id
get_by_ids
get_chapter_and_exercise_counts
get_course_module_id_by_chapter
get_credit_registration_config
get_default_by_course_id
get_ids_by_course_slug_or_uh_course_code
Gets all course modules with a matching uh_course_code or course slug.
insert
rename
update
update_automatic_completion_status
update_certification_enabled
update_enable_registering_completion_to_uh_open_university
update_modules
update_uh_course_code
update_with_order_number