Moodle

META: Rewrite the entire Gradebook system in Moodle 1.9

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • 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

We are going to completely rebuild the gradebook from the ground up, according to the spec at:

http://docs.moodle.org/en/Development:Grades

All 1.9 gradebook bugs and subtasks should be linked to this issue.

Issue Links

Progress
Resolved Sub-Tasks

Sub-Tasks

Activity

Hide
Nicolas Connault added a comment -

Applied most of Petr's patch related to gradebook objects. Only thing I didn't merge in was related to the assumption that grade_raw objects have their scaleid and scale object already set up by the grade_handler function. All unit tests pass without problem.

Thanks Petr!

Show
Nicolas Connault added a comment - Applied most of Petr's patch related to gradebook objects. Only thing I didn't merge in was related to the assumption that grade_raw objects have their scaleid and scale object already set up by the grade_handler function. All unit tests pass without problem. Thanks Petr!
Hide
Petr Škoda (skodak) added a comment -

new patch attached, removing the original one that is already in cvs

Show
Petr Škoda (skodak) added a comment - new patch attached, removing the original one that is already in cvs
Hide
Petr Škoda (skodak) added a comment -

attaching new patch that should solve multiple issues:
1/ initial support for migration of old grade_items and categories (not tested)
2/ rewritten grade update and calculation login
3/ initial support for calculation
4/ minor API refactoring and cleanup
5/ various small bugfixes
6/ fixed use of grademax with scales
7/ fixed some unit tests

TODO:

  • implement proper locking of grades - needs discussion
  • force recalculation of all formulas after adding/removing/changing of grade items
  • better delete support - needs discussion
  • support for NULLs n backup - Eloy already proposed a solution
  • support for NULLs in set_field()
  • speedup
  • more unit tests nd functional tests

Please review (or even commit if ok)

Show
Petr Škoda (skodak) added a comment - attaching new patch that should solve multiple issues: 1/ initial support for migration of old grade_items and categories (not tested) 2/ rewritten grade update and calculation login 3/ initial support for calculation 4/ minor API refactoring and cleanup 5/ various small bugfixes 6/ fixed use of grademax with scales 7/ fixed some unit tests TODO:
  • implement proper locking of grades - needs discussion
  • force recalculation of all formulas after adding/removing/changing of grade items
  • better delete support - needs discussion
  • support for NULLs n backup - Eloy already proposed a solution
  • support for NULLs in set_field()
  • speedup
  • more unit tests nd functional tests
Please review (or even commit if ok)
Hide
Hui Chun Kit added a comment -

Dear all,

Would it be possible to rewrite the UI code for the gradebook as well. I wonder if we can use the table form (like the one used in user module) to display the grades so as to make it easier to track and follow.

Besides, would it be possible to let users choose which user fields (or even user profile fields) will be displayed/exported ? This will be a very nice feature.

If there are anything I can help, I will do it.

Cheers,
Jacky Hui
Hong Kong

Show
Hui Chun Kit added a comment - Dear all, Would it be possible to rewrite the UI code for the gradebook as well. I wonder if we can use the table form (like the one used in user module) to display the grades so as to make it easier to track and follow. Besides, would it be possible to let users choose which user fields (or even user profile fields) will be displayed/exported ? This will be a very nice feature. If there are anything I can help, I will do it. Cheers, Jacky Hui Hong Kong
Hide
Martin Dougiamas added a comment -

Yay, great job all!

Show
Martin Dougiamas added a comment - Yay, great job all!

People

Vote (3)
Watch (7)

Dates

  • Created:
    Updated:
    Resolved: