You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Collapse XQueueInterface into XQueueInterfaceSubmission and let get_score() own the learner messages #345
Since #338, edx-submissions is the only backend for external grader submissions, but the code still has the shape it had when there were two. CodeResponse.get_score() builds a header dict and serializes it to JSON with make_xheader(), then XQueueInterface.send_to_queue() and XQueueInterfaceSubmission.get_submission_params() each parse it again to pull out the queue key and the queue name.
We should collapse XQueueInterface and XQueueInterfaceSubmission into one class that takes the queue name and the queue key as plain arguments, and drop the JSON header.
While we're in there, get_score() should own the whole learner-facing sentence for each failure case. Today send_to_queue() returns a short reason that gets dropped into "Unable to deliver your submission to grader (Reason: ...). Please try again later." which has two problems:
When the answer is over the edx-submissions size limit the learner is told to try again later, which won't help. That case should tell them their answer is too long.
The reasons ("the grading queue is unavailable", "the submission was rejected") aren't translated.
Activity