Skip to main content

Module course_module_completion_registered_to_study_registries

Module course_module_completion_registered_to_study_registries 

Source

Structs§

CourseModuleCompletionRegisteredToStudyRegistry
CourseModuleCompletionRegistrationState
A registration’s state without the registrar-supplied student number, for surfaces that must never expose it (see real_student_number on CourseModuleCompletionRegisteredToStudyRegistry).
NewCourseModuleCompletionRegisteredToStudyRegistry
RegisteredCompletion
An object representing that a completion has been registered to a study registry.

Functions§

completion_ids_registered_by_a_registrar
Of the given completions, the ones some registrar has already registered.
delete
get_by_completion_id_and_registrar_id
get_by_id
get_by_registrar_id_and_completion_ids
Returns non-deleted registrations for a registrar scoped to the given completion ids.
get_count_of_distinct_users_with_registrations_by_course_id
Get the number of students that have completed the course
get_platform_registered_row_for_completion
The row this platform registered itself for a completion, as opposed to one filed by a third-party registrar: a null study_registry_registrar_id is what marks a row as ours.
get_registrations_by_completion_ids
Registration state for the given completions, across all registrars. Selects no student number, unlike get_by_registrar_id_and_completion_ids.
insert
insert_bulk
insert_or_ignore
Like insert, but a pre-existing registration for the same completion is left untouched instead of erroring, for seeding scripts that may rerun against already-seeded data.
mark_completions_as_registered_to_study_registry