Moodle

Create some site-wide gradbook settings to force certain behaviour in grade categories

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9
  • Component/s: Gradebook
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Grade categories have a number of settings to "Aggregate only non-empty grades" and so on.

The problem is that some sites want settings always to be a certain way and would have to manually edit each category (could be thousands) to get what they want.

The solution is to add more options to a new grade category settings page to force certain settings: admin/settings.php?section=gradecategorysettings.

By default none of these are set. If they are set, then

  • those specific form controls on the category editing pages should be disabled,
  • any editing of that form should force those vales into the grade_category table (for completeness), and:
  • any code that depends on those values should check for and use the sitewide value instead of the actual value

Grade category settings -------------------------------------------------

Aggregation: [Menu of options here, including "Don't force" as default]
Aggregate only non-empty grades: [Force: On / Force: Off / Don't force]
Include outcomes in aggregation: [Force: On / Force: Off / Don't force]
Aggregate including subcategories: [Force: On / Force: Off / Don't force]
Keep the highest: [Menu of numbers, and Don't Force]
Drop the lowest: [Menu of numbers, and Don't Force]

Activity

Hide
Nicolas Connault added a comment -

All done, except that changing global settings doesn't update grade_categories records.

Show
Nicolas Connault added a comment - All done, except that changing global settings doesn't update grade_categories records.
Hide
Petr Škoda (skodak) added a comment -

reopening:
1/ if you change the setting the grades are not recalculated in all courses
2/ the category edit form should IMHO use hardFreeze() - we do it everywhere else

Show
Petr Škoda (skodak) added a comment - reopening: 1/ if you change the setting the grades are not recalculated in all courses 2/ the category edit form should IMHO use hardFreeze() - we do it everywhere else
Hide
Petr Škoda (skodak) added a comment -

done, reclosing...

Show
Petr Škoda (skodak) added a comment - done, reclosing...

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: