Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-57607

Write upgrade code for existing events

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 3.2
    • General
    • MOODLE_32_STABLE
    • MDL-57607-master-2
    • Hide
      PART 1 - BEFORE THE MYOVERVIEW PATCH
      1. Create a course C1, enrol students s1, s2, s3, s4 and s5.
      2. Create 2 groups in the course g1 and g2 with the following members:
        Group Members
        g1 s1, s2, s3
        g2 s1, s4
      3. Login as a teacher enrolled in C1.
      4. Create an assignment with a due date.
      5. Create a user override for s2 in the assignment.
      6. Create group overrides for the assignment.
      7. Create a feedback with a close date.
      PART 2 - UPGRADE
      1. Apply the My Overview patch.
      2. Perform the upgrade.
      3. Run cron:

        php admin/cli/cron.php
        

      PART 3 - Test
      1. Login as a student.
      2. Check your dashboard.
        • Confirm that the assignment due date and the feedback close date events are listed in the dashboard.
      3. Check the mdl_event table and check out the entries for the assignment overrides.
        • Confirm that the type is set to 1 (action) and an appropriate timesort is set.
      Show
      PART 1 - BEFORE THE MYOVERVIEW PATCH Create a course C1, enrol students s1, s2, s3, s4 and s5. Create 2 groups in the course g1 and g2 with the following members: Group Members g1 s1, s2, s3 g2 s1, s4 Login as a teacher enrolled in C1. Create an assignment with a due date. Create a user override for s2 in the assignment. Create group overrides for the assignment. Create a feedback with a close date. PART 2 - UPGRADE Apply the My Overview patch. Perform the upgrade. Run cron: php admin/cli/cron.php PART 3 - Test Login as a student. Check your dashboard. Confirm that the assignment due date and the feedback close date events are listed in the dashboard. Check the mdl_event table and check out the entries for the assignment overrides. Confirm that the type is set to 1 (action) and an appropriate timesort is set.
    • 3.3 Project Team Sprint 3

      The issue MDL-57435 altered the database table 'event' to accommodate for our new 'action' events. We should write some upgrade code to alter appropriate existing events so they appear on the 'My overview' block.

      It was discussed a couple of times about ignoring existing events but I think this is a bad approach. Eg. Large university gets excited about Moodle 3.3 and the new block. Makes announcement to students etc. Does upgrade, nothing shown on block. Removes block.

            jpataleta Jun Pataleta
            markn Mark Nelson
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.