Moodle

Cron job for support of legacy grade functions in modules

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8
  • Fix Version/s: 1.9
  • Component/s: Gradebook
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

For backward compatibility with old third-party modules, we will add a new function called grades_grab_grades() to admin/cron.php to search all mod/xxx/lib.php files for functions named xxx_grades().

These legacy functions will be called to extract all the grades for all the activities in each course. Once the data is extracted, the trigger_event() function can be called to initiate an event as usual and copy/upgrade the data in the gradebook tables.

Think hard about some way to prevent doing this same work over and over ....

Activity

Hide
Yu Zhang added a comment -

grade_grab_grades() is in but not finished yet as "grade_added" event is not yet implemented.

Show
Yu Zhang added a comment - grade_grab_grades() is in but not finished yet as "grade_added" event is not yet implemented.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: