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

Gradebook: Sum aggregation is incorrect for excluded

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9
    • 1.9.5
    • Gradebook
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      If I wanted to exclude or drop a grade in a sum aggregated category, the value for the category changes, but not its grademax, which in turn affects the student's overall course grade. For example, I have a Tests category whose aggregation is Sum. I will first say that Tests is a subcategory to the course category, whose has an aggregation of weighted mean. Tests has an aggregationcoef of 1. Tests have three grade items whose max values are the default 100. For simplicity's sake, I made all the grades 100, but then I wanted to exclude one grade. Category's range is still 0-300, but the student's grade in that category is the correct 200. The same issue can be replicated if I dropped the lowest grade or kept the highest two.

      If my written description doesn't make sense, I attached three screenshots of the issue in question:
      sum_agg_bug_1.png displays the gradebook acting normally (with no drops or excludes applied to grades)
      sum_agg_bug_excluded.png displays the gradebook acting strangely on an excluded grade (notice the course grade for that student changes)
      sum_agg_bug_drop.png displays the gradebook acting strangely when dropping grades (the student's overall grade also changes)

      Attachments

        1. 01Scr May. 04 12.04.jpg
          01Scr May. 04 12.04.jpg
          21 kB
        2. 02Scr May. 04 13.35.jpg
          02Scr May. 04 13.35.jpg
          15 kB
        3. category_total.jpg
          category_total.jpg
          17 kB
        4. sum_agg_bug_1.png
          sum_agg_bug_1.png
          6 kB
        5. sum_agg_bug_drop.png
          sum_agg_bug_drop.png
          7 kB
        6. sum_agg_bug_excluded.png
          sum_agg_bug_excluded.png
          7 kB
        7. sum_aggr_fix.patch
          13 kB
        8. sum_grades_drop.patch
          3 kB

        Issue Links

          Activity

            People

              skodak Petr Skoda
              pcali1 Philip Cali
              Nicolas Connault Nicolas Connault
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              18 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/May/09