lsuits / lsu-gradereport_grade_breakdown

Grade analysis of course gradebook
2 stars 0 forks source link

Natural bugs #10

Open rrusso opened 7 years ago

rrusso commented 7 years ago

In natural, it is possible for EVERY student to have a different grademax for a category/course.

The function for calculating this is a USER specific function in grade_grade called get_grade_max() and you must specify the user_grade_grade object, which we don't have in the context of the letter_report. It's relatively trivial to create a new user_grade_grade object in Moodle, but things will have to be restructured in order to fit it in here.

rrusso commented 7 years ago

The result of the problem is that sometimes you may see 14 students with a certain grade, but when you drill into that grade, you might only see two students. It's due to the way the grade is compared via an SQL query instead of by using above the function.

rrusso commented 7 years ago

The bug ONLY occurs in natural with ignore empty grades on.