Skip to main content

Module listing

Expand description

Enrolment discovery’s per-module listing: which modules a roster request covers, and what the last listing of each found.

Structs§

ModuleDiscoveryReport
One active module’s last successful listing, and whether the attempts since then have been failing.
ModuleToList
An active module and the facts a list-by-course request for it needs.

Functions§

get_active_discovery_reports
Every active module’s listing status, for the account-linking dashboard.
get_active_modules_for_course
Every active, listable module of one course, unpaginated.
mark_listing_failed
Records a listing attempt whose roster never arrived. last_listed_at keeps describing the last roster that did, because a failed listing must not read as an empty course.
mark_listing_succeeded
Records a listing whose roster arrived and clears the failure streak. fed_linking is whether account linking was on for it; only then does it move last_listed_at. Sibling of mark_listing_failed.