We've made some customizations to how students can be excluded from grade items, and we allow this customization to occur also at the group level. However, when a student has just been added to a course, they may not have grade item records created yet.
What I would like to know is when are the grade_grade records actually created for students for grade items that already exist? Does it occur when viewing a specific report or elsewhere? And can someone point out to me the exact code that causes the generation of all the empty grade_grade records for a student that's just been added to a course?
Thanks in advance!
grade_grade records aren't created for students until they have a grade. load_final_grades, the function that fills the grades for the grader (and laegrader) report creates a place-holder for grades that don't exist yet for existing grade_items.