Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-38189 META Backup/restore issues with large courses
  3. MDL-38192

Backup and restore: Allow selection by activity type

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      1. Create a course (or use an existing one) with a few different types of activities. For the purpose of this test, we will assume that one type of activity present on the course is 'Label'.

      2. Go to backup the course, and proceed past 'Initial settings' (without changing them) to the schema page.

      EXPECTED: The first 'Select: All / None' option should now include a third link, '(Show type options)'.

      3. Click 'Show type options'.

      EXPECTED: Beneath the link, a number of other select all/none options should appear - one for each type of activity that is included in the course. Activities that are not included in the course should not be shown.

      4. Next to 'Labels', click the 'None' button.

      EXPECTED: All the labels in the course should now be deselected and the equivalent userinfo checkboxes greyed out.

      5. Manually turn off a few other activities that aren't labels.

      6. Next to 'Labels', click the 'All' button.

      EXPECTED: All the labels in the course should now be selected and the userinfo checkboxes enabled again. The other activities you turned off manually should remain unselected.

      7. In the right-hand user info column, next to 'Labels', click the 'None' button.

      EXPECTED: User info should be turned off for all labels.

      8. Manually turn off user activities for a few other activities that aren't labels.

      9. Next to 'Labels' at right, click 'All'.

      EXPECTED: User info should be turned on for all labels (but remain off for the ones you just turned off).

      10. At top of screen, play with the four existing links (Select All/None for activities and for user info) to make sure the previously-existing functionality still works.

      11. Go back to the initial settings page. This time, turn off user info and proceed to the Schema page. Repeat steps 3-6 to check it still works with userinfo turned off.

      Show
      1. Create a course (or use an existing one) with a few different types of activities. For the purpose of this test, we will assume that one type of activity present on the course is 'Label'. 2. Go to backup the course, and proceed past 'Initial settings' (without changing them) to the schema page. EXPECTED: The first 'Select: All / None' option should now include a third link, '(Show type options)'. 3. Click 'Show type options'. EXPECTED: Beneath the link, a number of other select all/none options should appear - one for each type of activity that is included in the course. Activities that are not included in the course should not be shown. 4. Next to 'Labels', click the 'None' button. EXPECTED: All the labels in the course should now be deselected and the equivalent userinfo checkboxes greyed out. 5. Manually turn off a few other activities that aren't labels. 6. Next to 'Labels', click the 'All' button. EXPECTED: All the labels in the course should now be selected and the userinfo checkboxes enabled again. The other activities you turned off manually should remain unselected. 7. In the right-hand user info column, next to 'Labels', click the 'None' button. EXPECTED: User info should be turned off for all labels. 8. Manually turn off user activities for a few other activities that aren't labels. 9. Next to 'Labels' at right, click 'All'. EXPECTED: User info should be turned on for all labels (but remain off for the ones you just turned off). 10. At top of screen, play with the four existing links (Select All/None for activities and for user info) to make sure the previously-existing functionality still works. 11. Go back to the initial settings page. This time, turn off user info and proceed to the Schema page. Repeat steps 3-6 to check it still works with userinfo turned off.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-38192-master

      Description

      NOTE: I have updated the description of the issues to reflect remaining problems. In versions of Moodle prior to 2.6, the performance of the backup/restore pages was unacceptable, but this has been fixed by MDL-35674. In versions of Moodle prior to 2.4 there was no 'Select none' option. These problems no longer apply, leaving a much simpler remaining problem.

      Moodle 1.9 had options to turn off activities by type (for example, if you didn't want to back up any forums, you could turn off forums throughout the course). These options are not present in Moodle 2.

      When courses have a large number of activities (e.g. 1,000), it can be tedious to scroll through the list spotting all the forums and turning them off.

      I propose we should add back a way to select/deselect activities by type during backup.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13