Skip to content

Fix grading proctored tests that require proctor authorization to do so. (hotfix of #2968)#2972

Merged
Alex-Jordan merged 1 commit into
openwebwork:mainfrom
drgrice1:bugfix/gateway-test-proctor-grade-hotfix
May 18, 2026
Merged

Fix grading proctored tests that require proctor authorization to do so. (hotfix of #2968)#2972
Alex-Jordan merged 1 commit into
openwebwork:mainfrom
drgrice1:bugfix/gateway-test-proctor-grade-hotfix

Conversation

@drgrice1
Copy link
Copy Markdown
Member

The can_recordAnswers method of the WeBWorK::ContentGenerator::GatewayQuiz package can not call any of the WeBWorK::ContentGenerator::GatewayQuiz methods because it is called directly by the WeBWorK::ContentGenerator::LoginProctor module without a WeBWorK::ContentGenerator::GatewayQuiz object. Attempting to do so will cause an exception.

This is a bit annoying as the conditions of the can_gradeUnsubmittedTest method (including the conditions of the can_showProblemGrader method it calls) must be directly used by the can_recordAnswers method. There is no way around that though.

This definitely should be considered for a hotfix.

The `can_recordAnswers` method of the `WeBWorK::ContentGenerator::GatewayQuiz`
package can not call any of the `WeBWorK::ContentGenerator::GatewayQuiz`
methods because it is called directly by the `WeBWorK::ContentGenerator::LoginProctor`
module without a `WeBWorK::ContentGenerator::GatewayQuiz` object.
Attempting to do so will cause an exception.

This is a bit annoying as the conditions of the `can_gradeUnsubmittedTest`
method (including the conditions of the `can_showProblemGrader` method
it calls) must be directly used by the `can_recordAnswers` method. There
is no way around that though.

This definitely should be considered for a hotfix.
@Alex-Jordan Alex-Jordan merged commit 20634de into openwebwork:main May 18, 2026
2 checks passed
@drgrice1 drgrice1 deleted the bugfix/gateway-test-proctor-grade-hotfix branch May 18, 2026 10:29
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.

3 participants