Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-76588

Unify averages calculations in gradebook

XMLWordPrintable

    • 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:

      1. get_right_avg_row() in grade/report/grader/lib.php
      2. 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

            ilyatregubov Ilya Tregubov
            ilyatregubov Ilya Tregubov
            Glyn (Mathew) May Glyn (Mathew) May
            Jake Dallimore Jake Dallimore
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 55 minutes
                4d 55m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.