Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-11604 cron execution, review, fix and improve
  3. MDL-11660

Deleting user_lastaccess when deleting/resetting/manual unerolling from course

    XMLWordPrintable

    Details

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

      Description

      Not directly related with cron, but detectez while monitoring it.

      Petr has detected that on course deletion, records aren't deleted from the user_lastaccess table. Fixing includes:

      • delete such records in the delete_course() function
      • delete such records if necessary in reset_course()
      • delete when one user auto unenrol from one course?
      • as part of the upgrade, delete all records belonging to nonexistent courses.

      Call this the ORPHAN_BY_COURSE_DELETE_PROBLEM.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Tester:
            Nobody Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08