pub fn figure_out_new_grading_progress(
    current_grading_progress: Option<GradingProgress>,
    grading_grading_progress: GradingProgress
) -> GradingProgress
Expand description

Returns a new state for the grading progress.

The new grading progress is always the grading progress from the new grading unless the current grading progress is already finished. If the current grading progress is finished, we don’t change it to anything else so that a new worse submission won’t take the user’s progress away.

In the future this function will be extended to support peer reviews. When there’s a peer review associated with the exercise, it is part of the overall grading progress.