Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44373

course average gpa not displaying points as it should

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.7, 19.5, 20.0, 20.1, 21.0, 22.0 [Tentative]
    • Fix Version/s: 19.6, 20.2, 21.0, 22.0 [Tentative]
    • Component/s: None
    • Labels:
    • 21 Status:
      Verified
    • 20 status:
      Verified
    • 19 status:
      Verified
    • Test Plan:
      Hide

      Using a site with several graded students in the gradebook:
      (May require certain Sakai properties?)
      Change gradebook settings grade schema to Grade Points.
      Observe whether the calculation is correct and whether it is in Gradepoints (should be the point equivalent of whatever the lowest % is set to in the range for that letter of the schema).

      So if 87% is equivalent to a B+ and 87% is the calculation for the average of all graded students in the course, then the Course Average GPA would be 3.33

      Show
      Using a site with several graded students in the gradebook: (May require certain Sakai properties?) Change gradebook settings grade schema to Grade Points. Observe whether the calculation is correct and whether it is in Gradepoints (should be the point equivalent of whatever the lowest % is set to in the range for that letter of the schema). So if 87% is equivalent to a B+ and 87% is the calculation for the average of all graded students in the course, then the Course Average GPA would be 3.33

      Description

      Course Average GPA is displaying percentage, which is not what it was designed to do.

      It looks like the code to display the course average gpa (#3 in screenshot) was updated in SAK-39982 in 2018. That change replaced a seemingly working calculation that returned the average as a GPA e.g. "2.33" with a calculation that returns a percentage that represents the average of the "bottom percentage" of each mapped grade. The problem from what I can quickly tell is that the old calculation relied on a hardcoded GPA map that looked like this:
      A (4.0)
      A- (3.67)
      B+ (3.33)
      B (3.0)
      B- (2.67)
      C+ (2.33)
      C (2.0)
      C- (1.67)
      D (1.0)
      F (0)
      So, if one updated the grading schema in the UI away from those exact labels, the calculation wouldn't work anymore.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  davidpbauer David P. Bauer
                  Reporter:
                  lgekeler Laura Gekeler
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration