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

Grade course total not calculated properly with grade items

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0.1
    • None
    • Gradebook
    • MOODLE_400_STABLE

    Description

      I recently updated an existing test whilst implementing some new generators in MDL-74613. Before my changes, the test only tested submission grades and the total grade was correct. However, I added a grade item to test that as well and the total grade does not seem right. I'm not sure if that's the expected behaviour for some obscure reason I don't grasp, or if this is actually a bug.

      I tried to look at the code to understand how that value came to be, but after finding a discouraging comment I decided to stop digging any further. I think it's better if someone who understands this more in depth takes a look.

      The test in question to reproduce this situation can be found in the switch_views.feature file.

      I'm also attaching a screenshot of the page to show what I mean. Looking at that table, I'd guess the total should be 110. So I'm not sure how 105.71 is calculated.

      Attachments

        1. manual_grade_min_grade_0.png
          67 kB
          Jake Dallimore
        2. manual_grade_min_grade_20.png
          68 kB
          Jake Dallimore
        3. Screenshot from 2022-06-30 12-16-19.png
          79 kB
          Noel De Martin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              noeldemartin Noel De Martin
              Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: