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

calendar events from activities lost after restore with no user

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course with some students enrolled.
      2. Make sure to create a couple of groups for the course.
      3. Create a couple of assignments and quizzes.
      4. Make sure that these activities have a start and finish date (preferably in this month). It may be a good idea to add the calendar block to your course.
      5. Check that events in the calendar have been created for these start and finish times. (quiz only seems to create events for start times, while assignments create events for due days).
      6. Create a course event in the calendar.
      7. Create a group event in the calendar.
      8. Back up the course without user data.
      9. When un-checking the "include enrolled users" box, make sure that the "Include calendar events" box is still checked.
      10. Restore the course (into a new course).
      11. Check that the activity events are still present, the course events and group event is restored as well.
      12. Restore the course again (into a new course).
      13. This time set the course start date a month ahead.
      14. Ensure that the activity events are now a month ahead.

        Additional Fred testing

      15. Create a different course.
      16. Add some events in the calendar. Make sure to add course and group events.
      17. Restore the previous course and merge it into this newly created course.
      18. Check that the events have all been merged into the calendar with no issues.
      Show
      Create a course with some students enrolled. Make sure to create a couple of groups for the course. Create a couple of assignments and quizzes. Make sure that these activities have a start and finish date (preferably in this month). It may be a good idea to add the calendar block to your course. Check that events in the calendar have been created for these start and finish times. (quiz only seems to create events for start times, while assignments create events for due days). Create a course event in the calendar. Create a group event in the calendar. Back up the course without user data. When un-checking the "include enrolled users" box, make sure that the "Include calendar events" box is still checked. Restore the course (into a new course). Check that the activity events are still present, the course events and group event is restored as well. Restore the course again (into a new course). This time set the course start date a month ahead. Ensure that the activity events are now a month ahead. Additional Fred testing Create a different course. Add some events in the calendar. Make sure to add course and group events. Restore the previous course and merge it into this newly created course. Check that the events have all been merged into the calendar with no issues.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-36240-master
    • Sprint:
      BACKEND Sprint 18

      Description

      The calendar events from activities like quizes or assignments are lost when you restore a course with no user data import. In my opinion all the calendar events refered to course activities should be inserted in the calendar after a restore.

      When you restore with user data it works. Activities calendar events shouldn't be considered "user data".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abgreeve Adrian Greeve
              Reporter:
              marcoblancas Isaac Marco Blancas
              Peer reviewer:
              Frédéric Massart
              Integrator:
              Dan Poltawski
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              8 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Jan/15