Skip to main content

Module credit_registration_enrolment_routes

Module credit_registration_enrolment_routes 

Source
Expand description

What a student said about enrolling, on the new registration page: the route, the questions that steer students who would struggle to enrol towards a certificate, and the certificate choice.

Advisory throughout: the pipeline never reads these rows. They decide which enrolment instructions the page shows and how far its step list has come, and the study registry is what actually settles whether an enrolment exists.

Structs§

EnrolmentAnswers
The student’s answers to the enrolment questions, written together and replaced as a whole.
EnrolmentRouteAnswer

Enums§

CreditRegistrationEnrolmentRoute
Which university relationship a student picked, which decides only where they are told to enrol.
CreditRegistrationIdentification
How a student without a Finnish personal identity code said they can identify themselves for enrolling.
CreditRegistrationNeed
Whether a student said they need a certificate or credits in the study registry.

Functions§

delete_all_by_user_id
Erases every answer the user gave. Called from account deletion, which is why this is a hard delete: the answers are personal circumstances the student told us.
get_by_completion_id
set_answers
Records the student’s answers, replacing any earlier ones.
set_certificate_chosen
Sets or clears the student’s choice of the certificate over registering credits.
set_enrolment_confirmed
Sets or clears the Done the student pressed to say they had enrolled.