Manual grading: POST comments

Manual grading: POST comments

by Ricardo Cruz -
Number of replies: 2

Dear all,

We have been using Moodle to grade students in programming exercises. There are great extensions for that like CodeRunner. Unfortunately, our University won't install that for us, neither do they allow us to use Moodle Web Services API.

Until we sort that out, what we have been doing is good old scraping. Students write their code and then we have a scrapper that evaluates the code and grades them.

For each student, the payload from the Manual Grading module looks like this:

'q13714:1_:sequencecheck': '4', 'q13714:1_-comment:itemid': '851663052', 'q13714:1_-commentformat': '1', 'q13714:1_-mark': '100', 'q13714:1_-maxmark': '100', 'q13714:1_:minfraction': '0', 'q13714:1_:maxfraction': '1'

We have been submitting the grade using q13714:1_-mark. My question is, it would be nice to also submit something as comment/feedback. 

Looking at the POST payload, I am not sure how we should do that... Help? smile


Average of ratings: -
In reply to Ricardo Cruz

Re: Manual grading: POST comments

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It is strange that the POST request you captured includes two or the metadata fields, but not the text content (perhpas try typing something into the editor before submitting?)

Along with 'q13714:1_-comment:itemid': '851663052', 'q13714:1_-commentformat': '1', ... there should also be 'q13714:1_-comment': 'Your work is great!'.
In reply to Tim Hunt

Re: Manual grading: POST comments

by Ricardo Cruz -

Thank you! We will try to add "qxxxx_-comment" to the payload!