Skip to content

Make sure that a proctored test becomes unproctored when graded by instructor. (hotfix of #2969)#2973

Open
drgrice1 wants to merge 1 commit into
openwebwork:mainfrom
drgrice1:fix-grading-overtime-proctored-test-hotfix
Open

Make sure that a proctored test becomes unproctored when graded by instructor. (hotfix of #2969)#2973
drgrice1 wants to merge 1 commit into
openwebwork:mainfrom
drgrice1:fix-grading-overtime-proctored-test-hotfix

Conversation

@drgrice1
Copy link
Copy Markdown
Member

When an instructor uses the "Grade Test for" button and the test is on its final submission, currently the grading occurs, but the test is still set as a proctored test.

To fix this the condition that determines if the assignment type should be changed needs to check the $can{recordAnswers} value in the case that the $userID and $effectiveUserID are different. In that case $can{recordAnswers} is the result of the can_recordAnswers method which will be true if either the user has the
record_answers_when_acting_as_student permission or the user can grade an unsubmitted test.

This fixes issue #2962.

The GatewayQuiz.pm module is really so convoluted at this point that it is really becoming impossible to do anything with, and is in desperate need of a complete overhaul and rewrite. Any time any new feature is added to the module or change is made to the module it is almost impossible to go through all of the possibilities and ensure you haven't broken something.

…structor.

When an instructor uses the "Grade Test for" button and the test is on
its final submission, currently the grading occurs, but the test is
still set as a proctored test.

To fix this the condition that determines if the assignment type should
be changed needs to check the `$can{recordAnswers}` value in the case
that the `$userID` and `$effectiveUserID` are different.  In that case
`$can{recordAnswers}` is the result of the `can_recordAnswers` method
which will be true if either the user has the
`record_answers_when_acting_as_student` permission or the user can grade
an unsubmitted test.

This fixes issue openwebwork#2962.

The `GatewayQuiz.pm` module is really so convoluted at this point that
it is really becoming impossible to do anything with, and is in
desperate need of a complete overhaul and rewrite. Any time any new
feature is added to the module or change is made to the module it is
almost impossible to go through all of the possibilities and ensure you
haven't broken something.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants