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

Add backup and restore for badges

    Details

    • Type: Task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5.1
    • Component/s: Badges
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course with badges enabled.
      2. Create different badges using each of the different criteria available.
      3. Complete activities in the course as different students etc in order to earn each of the badges available. (You may need to run cron)
      4. Backup the course with badges enabled.
      5. Restore the course to a new course with badges enabled.
      6. Verify that the badges have been restored and are unavailable.
      7. Activate each of the badges and verify that the badges are awarded to the same students as in the previous course.
      8. Restore the course to an existing course with badges enabled.
      9. Verify that the badges have been restored and are unavailable.
      10. Activate each of the badges and verify that the badges are awarded to the same students as in the previous course (you may need to set the course completion criteria again).
      11. Backup the original course with no activities and verify that you cannot include badges
      12. Backup the original course with no users and verify that you cannot include badges
      13. Disable badges on the server
      14. Verify that you can backup and restore a course and that the new course doesn't have any badges (even if the original did).
      Show
      Create a course with badges enabled. Create different badges using each of the different criteria available. Complete activities in the course as different students etc in order to earn each of the badges available. (You may need to run cron) Backup the course with badges enabled. Restore the course to a new course with badges enabled. Verify that the badges have been restored and are unavailable. Activate each of the badges and verify that the badges are awarded to the same students as in the previous course. Restore the course to an existing course with badges enabled. Verify that the badges have been restored and are unavailable. Activate each of the badges and verify that the badges are awarded to the same students as in the previous course (you may need to set the course completion criteria again). Backup the original course with no activities and verify that you cannot include badges Backup the original course with no users and verify that you cannot include badges Disable badges on the server Verify that you can backup and restore a course and that the new course doesn't have any badges (even if the original did).
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:

      Description

      Need to make sure course badges are getting backed up and restored. Missed this in initial implementation.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    8/Jul/13