Posts made by Tim Hunt

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You are right about the basic idea.

However, while that basic idea sounds simple, it turns out to make life very difficult for the backup and restores code. To get it to work reliably in all cases had taken a lot of extremely clever work from Mark Johnson over the last year or so. (All the cases meaning things like - backup restore to the same Moodle site or a different one; backup being a whole course or just one activity; ...). Fixing it properly in some cases required building on the new question bank stuff in Moodle 5.0+, so things could not be fixed in earlier versions.

Regrettably, it is not all perfect yet. For many years, there were bit, know, issues in question backup and restore. I think we (Mark) has now fixed those big issues. But, then what happened is that rather than everyone knowing that Question backup and restore was a mess, instead people started to expect it would work, but then notice subtle edge cases that were still wrong. Thanks to everyone who found the time to report it when they noticed one of these problems. A lot of these things have been fixed, but there are still about half a dozen left. They should all be linked from this Epic MDL-88134 - along with other things.

If anyone is in a position to fund development work to get these remaining issues fixed, please reach out to Luca Bösch.  And, thanks to Hochschule Hannover who are funding a chunk of develoment work that should start next week.

Average of ratings: Useful (2)
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I don't really have anything useful to add here, having reviewed the thread. I would like to know upgrading to Moodle 5.2, waiting for all ad-hoc and scheduled tasks to finished things related to the upgrade, would leave things in a place where backup/restore now works. However, that is probably a disproportionate amount of work just for some testing, until you are ready to upgrade to that Moodle version (or 5.3 which is the next LTS).
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
This data is in the database, but not necessarily easy to get at.

See this query: https://docs.moodle.org/dev/Overview_of_the_Moodle_question_engine#Detailed_data_about_an_attempt. qas.userid will be the user who graded the quiz attempt, where that question_attempt_step is the one where the user graded the attempt.

This is complex becuase Moodle supports things like one user going in to grade a student's question, then another user coming along to review that, and possibly edit the grade.

This is all raw SQL. I am pretty sure it is not avialable within Moodle's report builder system.
Average of ratings: Useful (1)
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Well, the logic for this is here https://github.com/moodle/moodle/blob/402b31e357a09f2c58598cc718de35c319513506/public/mod/quiz/overrides.php#L184-L192 (if you read PHP code) and it pretty-much does what the on-screen text says.

So, I don't see an obvious bug. If you can work out reliable steps to reproduce this, please share.