-
Improvement
-
Resolution: Fixed
-
Minor
-
4.1, 4.2
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MOODLE_404_STABLE
-
MDL-76588-master-2 -
-
-
5
-
Team Alpha - Planning I3-2023, Team Alpha - Sprint 1 I3-2023
We need to unify how we calculate averages on grade report pages. Currently we have these 2 old functions:
- get_right_avg_row() in grade/report/grader/lib.php
- calculate_averages() in grade/report/user/lib.php
And we also have this new function
- calculate_average() in grade/report/lib.php
The last one was created in MDL-75156 and is based on existing functions. It is covered by unit tests (while old functions are not) . We should deprecated get_right_avg_row() and calculate_averages() so we have only one source of truth