Structs§
- CmsPeer
OrSelf Review Config - CmsPeer
OrSelf Review Configuration - CmsPeer
OrSelf Review Configuration Save - Save of a course’s default configuration. A save is refused as stale when
expected_updated_atis set and the configuration has changed since that version; leave it unset to overwrite. - Course
Material Peer OrSelf Review Config - Like
PeerOrSelfReviewConfigbut only the fields it’s fine to show to all users. - Peer
OrSelf Review Config - Versioned
CmsPeer OrSelf Review Configuration - A course’s default configuration as the CMS loaded it.
updated_atis the version the editor sends back on save.
Enums§
- Peer
Review Processing Strategy - 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_idinstead 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;
Noneif 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
PreconditionFailedifconfig_idisn’t the course’s default config. - upsert_
course_ default_ cms_ peer_ review_ and_ questions - upsert_
for_ course_ id - With
expected_updated_atset, refuses with ModelErrorType::StaleVersion unless the config row still has thatupdated_at. The check runs under the row lock. - upsert_
with_ id