Gradebook / unable to use course grade override when using percentages

Description

If an instructor attempts to use the Course Grade Override option within the GB tool while its configured for percentages, an error will occur in the UI and logs and the override will not save.

UI error:
An error occurred updating the course grade.

Log error:
ERROR http-apr-8080-exec-489 org.sakaiproject.gradebookng.business.GradebookNgBusinessService - An error occurred saving the course grade. class java.lang.IllegalArgumentException: Null points possible passed to convertInputGradeToPoints for letter or % based grading

Activity

Show:

Christina Schwiebert March 11, 2022 at 3:28 PM

Verified on 21 - https://qa21-mysql.nightly.sakaiproject.org/, build 6d6dd157

Andrea Schmidt January 6, 2022 at 10:12 AM

Verified on 22x: https://qa22-mysql.nightly.sakaiproject.org/, build: 6711270b

Earle Nietzel December 16, 2021 at 7:32 PM

Tested on 20.x build: 0142ab5e

Andrea Schmidt December 9, 2021 at 10:46 PM

Verified on 23x: https://trunk-mysql.nightly.sakaiproject.org/, build: a402cf30

Tested entering C when the calculated grade was D. The calculated percentage continues to display beside the new letter grade.

Tested the revert to calculated grade in the Override pop-up

Tested modifying the letter grade again

Checked the Override Log to make sure everything displays

Sam Ottenhoff December 7, 2021 at 6:31 PM

I attempted to fix this by assuming that totalPointsPossible would always be 100 when using percentage grading.

But then I looked more into and and came to the conclusion that a number of bugs exist because of this work.

My recommendation at this point is to revert those two JIRAs.

Fixed

Details

Priority

Affects versions

Fix versions

22 Status

Verified

21 Status

Verified

Components

Assignee

Reporter

Environment

Sakai nightly 20x/21/22/master
Created December 6, 2021 at 1:53 PM
Updated March 11, 2022 at 3:28 PM
Resolved December 9, 2021 at 10:47 PM