Expand description
Per-item world-state resolution: pure functions over the working set, with now passed in.
The caller resolves faults ahead of this, so per item the order is first matching fault, then here.
Enumsยง
- Import
Resolution - What resolving one import item comes to before anything is written.
- Incoming
Grade ๐ - The Finnish grade string Suotar ranks by: 1โ5, โHyv.โ or a fail.
Constantsยง
- NO_
ACCEPTORS_ ๐VIOLATION - Suotarโs approver violation, as its translation table words it.
- RECENTLY_
ACCEPTED_ ๐HOURS - How far back Suotar checks its own accepted sends, which the importerโs copy of Sisu may not show yet.
Functionsยง
- acceptor_
lookup_ fails - Whether the batchโs acceptor lookup would fail for any of these submissionsโ course units.
- attainment_
summary ๐ - attainments_
for ๐ - beats ๐
- Higher grade wins; with equal grades more credits win; with those equal too a later date wins, by more than a day on the 0โ5 scale. A fail never beats a pass.
- clamp_
into_ ๐study_ right - A date on or before the start moves to the start, one on or after the end to the day before it, and nothing may precede a grant date that falls inside the validity.
- course_
not_ ๐allowed_ reason - credits_
of ๐ - enrolment_
dto ๐ - enrolments_
for ๐ - existing_
attainment ๐ - import_
outcome - Read back from the submission, the way Suotar answers after its send.
- is_
identical ๐ - is_
passed ๐ - is_
pending ๐ - An accepted send stays pending for good: Sisu took it, so
notRegisteredwould invite a second. - list_
by_ course_ item - Only realisations whose activity period ends after two months ago are listed; one with no end date never is.
- numeric_
grade ๐ - A pass/fail attainment has no numeric correspondence, which Suotar compares as zero.
- recently_
accepted ๐ - A send Sisu accepted within
RECENTLY_ACCEPTED_HOURSof the same completion. Not matched on the date, which Suotarโs cron runs vary for one completion. - record_
submission - resolve_
enrolments_ item - resolve_
import_ item - Suotarโs checks in its own order, first failure wins.
- resolve_
person_ item - retry_
after ๐ - validate_
course_ code_ item - verify_
item - write_
and_ send - Writes the submission and sends it: refused by Sisu when the world holds violations for it, accepted otherwise.