Attribute grade overrides from proctoring to the final reviewer

More generally, makes it so we don't ever pull in the user to whom
we're attributing overrides from the request, but always use the one
passed in via method parameters

Also pass through comments, if they're provided via this method

JIRA:EDUCATOR-4641
This commit is contained in:
Matt Hughes
2019-09-27 10:31:35 -04:00
committed by Matt Hughes
parent 6f3e1e7e3d
commit 6085852c99
6 changed files with 41 additions and 14 deletions

View File

@@ -29,7 +29,7 @@ class GradesService(object):
def override_subsection_grade(
self, user_id, course_key_or_id, usage_key_or_id, earned_all=None, earned_graded=None,
feature=api.constants.GradeOverrideFeatureEnum.proctoring
feature=api.constants.GradeOverrideFeatureEnum.proctoring, overrider=None, comment=None
):
"""
Creates a PersistentSubsectionGradeOverride corresponding to the given
@@ -46,7 +46,9 @@ class GradesService(object):
usage_key_or_id,
earned_all=earned_all,
earned_graded=earned_graded,
feature=feature)
feature=feature,
overrider=overrider,
comment=comment)
def undo_override_subsection_grade(self, user_id, course_key_or_id, usage_key_or_id,
feature=api.constants.GradeOverrideFeatureEnum.proctoring):