Skip to main content

Module peer_or_self_review_configs

Module peer_or_self_review_configs 

Source

Structs§

CmsPeerOrSelfReviewConfig
CmsPeerOrSelfReviewConfiguration
CmsPeerOrSelfReviewConfigurationSave
Save of a course’s default configuration. A save is refused as stale when expected_updated_at is set and the configuration has changed since that version; leave it unset to overwrite.
CourseMaterialPeerOrSelfReviewConfig
Like PeerOrSelfReviewConfig but only the fields it’s fine to show to all users.
PeerOrSelfReviewConfig
VersionedCmsPeerOrSelfReviewConfiguration
A course’s default configuration as the CMS loaded it. updated_at is the version the editor sends back on save.

Enums§

PeerReviewProcessingStrategy
Determines how we will treat the answer being peer reviewed once it has received enough reviews and the student has given enough peer reviews.

Functions§

delete
delete_peer_reviews_by_exrcise_ids
get_by_exercise_id
Usually you want to use get_by_exercise_or_course_id instead of this one.
get_by_exercise_or_course_id
Returns the correct peer review config depending on exercise.use_course_default_peer_or_self_review_config.
get_by_id
get_by_ids
The configs with the ids that aren’t deleted, in no particular order.
get_cms_peer_review_by_id
get_course_default_cms_peer_review
get_course_default_cms_peer_review_configuration
The course’s default configuration with its questions; None if the course has none.
get_course_default_versioned_cms_peer_review
The course default configuration with its questions, as the CMS edits it.
get_course_material_peer_or_self_review_data
get_default_for_course_by_course_id
get_peer_reviews_by_page_ids
The review configs of the undeleted exercises on the pages.
insert
set_course_default_review_instructions
Sets the review instructions of the course’s default config, leaving its other settings as they are. Errors with PreconditionFailed if config_id isn’t the course’s default config.
upsert_course_default_cms_peer_review_and_questions
upsert_for_course_id
With expected_updated_at set, refuses with ModelErrorType::StaleVersion unless the config row still has that updated_at. The check runs under the row lock.
upsert_with_id