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

Course reports should be able to store table data in course backup

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.4
    • 2.1
    • Backup
    • None
    • MOODLE_21_STABLE
    • MOODLE_20_STABLE
    • MDL-27532-master
    • Hide

      Difficulty: Moderate (requires local install)

      1. No standard Moodle course report uses this facility. Consequently, to test it is necessary to 'fake' it. Unpack the attachment backup.zip and place the files in the new 'backup' folder inside course/report/log. (This backup folder should be at the same level as the existing db and lang folders.)

      2. Create a course with short name FROGTEST (the name is significant!). Add an activity such as a label. Back up the course using default settings.

      3. Restore the backup to a new course using default settings. On the last screen of restore (the one where it actually does the restore) you should notice some ugly test text with a heading 'Restoring!' and the id 13 and the variant 'ribbit'. [Now delete the restored course if you like.]

      4. Go back to the original course and change its short name to ZOMBIETEST. Now do the backup again using default settings.

      5. Restore the new backup to a new course. Verify that the test text shown above does not appear this time.

      6. For completeness, take a look at the restored course (main page) and check it appears OK.

      7. To clean up, delete the restored and created courses, and delete the superfluous 'backup' folder from within the coursereport/log code area.

      Show
      Difficulty: Moderate (requires local install) 1. No standard Moodle course report uses this facility. Consequently, to test it is necessary to 'fake' it. Unpack the attachment backup.zip and place the files in the new 'backup' folder inside course/report/log. (This backup folder should be at the same level as the existing db and lang folders.) 2. Create a course with short name FROGTEST (the name is significant!). Add an activity such as a label. Back up the course using default settings. 3. Restore the backup to a new course using default settings. On the last screen of restore (the one where it actually does the restore) you should notice some ugly test text with a heading 'Restoring!' and the id 13 and the variant 'ribbit'. [Now delete the restored course if you like.] 4. Go back to the original course and change its short name to ZOMBIETEST. Now do the backup again using default settings. 5. Restore the new backup to a new course. Verify that the test text shown above does not appear this time. 6. For completeness, take a look at the restored course (main page) and check it appears OK. 7. To clean up, delete the restored and created courses, and delete the superfluous 'backup' folder from within the coursereport/log code area.

      Course reports (e.g. coursereport_xx, in course/report/xx) are allowed to have database tables etc. This works great.

      However, if there is any course-specific data in those tables, I could not find a way to back it up with the course.

      I would like to be able to back it up with the course. We added something similar for theme backup a little while ago.

      This would only give an extra ability to custom course report plugins which store some course-related data. As the plugins supplied with core Moodle do not store any data, this would not affect those plugins.

            quen Sam Marshall
            quen Sam Marshall
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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