Better error message when attempting to publish assessment with wrong points value in a drop lowest category

Description

When trying to add a published assessment with a different point value from Tests & Quizzes to a category in Gradebook with one of the drop/keep options enabled (NOT an equal weight category), saving Settings silently fails to save the Gradebook setting.

The item is either created in the Gradebook but remains uncategorized, or fails to go to the Gradebook with errors like the following being printed to the logs:

Exception thrown in updateGB(): There is no external assessment id=170587 in gradebook uid=f6cae140-df3a-4333-bc08-aeb6452ef633 No external assessment defined for publishedAssessmentId=170587 in gradebookUid=f6cae140-df3a-4333-bc08-aeb6452ef633

The silent failure to save is confusing to the instructor. It should throw an error to the user on save requiring them to choose a different category. UVA has a local fix to this issue, where the following message is presented to the user when the quiz cannot be added to the GB:

Warning: There was an issue adding this item to Gradebook. Items added to the currently selected Gradebook category must be worth X points.

“X” in the error message is replaced with the number of points required for the category’s items based on items currently included in the GB category, e.g., “Warning: There was an issue adding this item to Gradebook. Items added to the currently selected Gradebook category must be worth 2.0 points.”

Activity

Show:

Tiffany Stull May 16, 2022 at 2:45 PM

The testing steps I originally placed in this Jira which deleted included regression tests to make sure that all settings combinations were still behaving correctly.

Automation for Jira May 16, 2022 at 2:38 PM

A pull request has been created, "SAK-46657 provide better error message when points dont match categor…", you can see it at https://github.com/sakaiproject/sakai/pull/10556

Fixed

Details

Priority

Fix versions

Assignee

Reporter

Labels

Environment

https://experimental.nightly.sakaiproject.org/portal/site/
Created December 7, 2021 at 4:02 PM
Updated September 29, 2022 at 11:58 PM
Resolved June 9, 2022 at 5:17 PM

Flag notifications