Skip to content

Fix grading proctored tests that require proctor authorization to do so.#2968

Open
drgrice1 wants to merge 1 commit intoopenwebwork:WeBWorK-2.21from
drgrice1:bugfix/gateway-test-proctor-grade
Open

Fix grading proctored tests that require proctor authorization to do so.#2968
drgrice1 wants to merge 1 commit intoopenwebwork:WeBWorK-2.21from
drgrice1:bugfix/gateway-test-proctor-grade

Conversation

@drgrice1
Copy link
Copy Markdown
Member

@drgrice1 drgrice1 commented May 6, 2026

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.
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.

1 participant