Skip to main content

Module legacy_mirror

Module legacy_mirror 

Source
Expand description

Mirroring our successes into the legacy study-registry ledger. The mirror row makes the registry’s own ?exclude_already_registered=true skip the completion, keeps the teacher views’ existing registered flag working, and gives support the real student number.

The row’s study_registry_registrar_id is null, which is what marks it as ours: we registered the attainment ourselves rather than handing it to a third party holding an API key.

Structs§

LegacyLedgerDivergence
One ledger row whose standing in the legacy ledger disagrees with ours.

Constants§

LEGACY_MIRROR_LIMIT
How many rows one iteration may mirror.

Functions§

get_legacy_ledger_divergences
Ledger rows the legacy ledger contradicts, in either direction.
mirror_successes_to_legacy_ledger
Writes a legacy ledger row for every successful registration that has none; returns the count.