headless_lms_models::user_exercise_task_states

Function figure_out_new_activity_progress

Source
pub fn figure_out_new_activity_progress(
    current_activity_progress: ActivityProgress,
) -> ActivityProgress
Expand description

Returns a new state for the activity progress.

In the future this function will be extended to support peer reviews. When there’s a peer review associated with the exercise, the activity is not complete before the user has given the peer reviews that they’re required to give.