A. Mistaken unerollmentWe have a course with some custom grade columns. A user Fred is enrolled in this course as a student, and has some manually assigned grades in these custom columns.
- Fred is unenrolled from the course.
- Will Fred be listed in the gradebook now?
- If the grades for one of the custom columns is exported (let's say to XML) Will Fred's grade be included in the export file?
- You realise that unenrolling Fred was a mistake, so you re-enrol him.
- Will Fred's custom marks have been remembered?
B. Importing a file with extra users in it
In a school, every student has to study the compulsory course Tadpoles. Then, they may, or may not to go on to the optional follow-up course Frogs. The teacher on the course Frogs wants to see the score for course tadpoles in the gradebook for course Frogs. So they:
- Export the course grade for course Tadpoles in XML format.
- Go to the gradebook for course Frogs, and add a custom column called 'Tadpoles final score'.
- Import the XML export they just did.
- The XML export contains the results for more users than there are enrolled in course Frogs. When the import is done, how much data is stored in the database?
- Suppose Fred originally decided not to do course Frogs, then changed his mind. When he is enrolled late on course Frogs, will his score in the 'Tadpoles final score' column already be present, or will it need to be copied manually?
C. Import from an external source
You have an file of grades in Moodle XML format, but this came from an external source, and it contains the ids of some users that are known to Moodle, and some that are not in the Moodle database. What happens when you try to import this file? It would be good if you could import all the scores of people know to Moodle, while ignoring those who are not (but may have a list of ignored users printed on screen as the import progresses).