Skip to content

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

Open
drgrice1 wants to merge 1 commit into
openwebwork: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 into
openwebwork: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.
Copy link
Copy Markdown
Contributor

@somiaj somiaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the issue.

I too think a hotfix is worth it. Should #2969 be included in that?

@drgrice1
Copy link
Copy Markdown
Member Author

Yeah, that could be a hotfix as well.

@drgrice1
Copy link
Copy Markdown
Member Author

This is certainly more serious than #2968 though as this prevents grading of a proctored test at all in the case that proctor authorization is required at the end of the test.

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