Skip to main content

Module config_validation

Module config_validation 

Source
Expand description

Deciding whether one moduleโ€™s credit-registration configuration is usable.

Pure: the facts are gathered by crate::course_module_suotar_configurations::get_config_facts_for_enabled_modules and the verdict is stamped back by crate::course_module_suotar_configurations::record_config_check.

Constantsยง

COURSE_CODE_NOT_FOUND ๐Ÿ”’
NO_COURSE_CODE ๐Ÿ”’
The problems the check reports, in the order they block a registration. English on purpose: this is operator diagnostics stored on the row, not student-facing copy.
NO_ECTS ๐Ÿ”’
NO_PRODUCT_ID ๐Ÿ”’
NO_PRODUCT_TOKEN ๐Ÿ”’
NO_REALISATION ๐Ÿ”’
NUMERIC_SCALE_ON_UNGRADED_COMPLETIONS ๐Ÿ”’
OLD_FLOW_ALSO_ENABLED ๐Ÿ”’
UNKNOWN_GRADE_SCALE ๐Ÿ”’

Functionsยง

check_module_config
Checks one moduleโ€™s configuration.