Skip to main content

Module course_module_suotar_configurations

Module course_module_suotar_configurations 

Source

Structs§

CourseModuleSuotarConfiguration
SuotarConfigCheck
What one configuration check concluded. None on either boolean means the check could not reach an answer, which the dashboard renders as “unknown” rather than as a failure.
SuotarModuleConfigFacts
Everything the per-module configuration check reads, gathered in one query so validating every enabled module costs one pass rather than a fan-out per module.
SuotarModuleOverview
A Suotar-enabled module as the Courses tab lists it: what it is configured with, what the last check concluded, and how much work it has produced.
SuotarPause
Who paused a module’s credit registration, and why. One value rather than three arguments because course_module_suotar_configurations_pause_pair rejects a timestamp without an actor.

Functions§

count_modules_failing_config_check
Enabled modules the last check found broken. A module nothing has checked yet is not counted: unknown is not a failure.
exists
Whether the module already has a live configuration row. Lets a caller tell “nothing to store” apart from “the teacher cleared what was stored”, which look the same in an edit payload.
get_config_facts_for_enabled_modules
Every Suotar-enabled module’s configuration facts, optionally narrowed to one course. Paused modules are included: a paused module’s configuration is exactly what an operator is about to fix.
get_module_overviews
Every Suotar-enabled module, one row each, ordered by course then module order.
get_stalest_product_ids_for_enabled_modules
The products whose access tokens are worth refreshing: those configured on an enabled, unpaused module, least recently attempted first. One product can back several modules, so each appears once.
record_config_check
Stamps the check result on the module, creating the configuration row for a module that has none: an enabled module with no configuration is itself one of the problems being reported.
set_paused
Pauses or resumes the module. Every phase’s claim query skips a paused module, so pausing freezes its ledger rows where they stand instead of cancelling them. None resumes.
upsert
Writes the module’s Suotar configuration, creating the row if the module has none. The pause and config-check columns are left alone; their writers are separate.