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

Support for opting out of competency backup during backups

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1
    • 3.1
    • Competencies
    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • MDL-53974-master
    • Hide
      Setup
      1. Login as admin.
      2. Navigate to Site administration ► Competencies ► Competency frameworks. (If you don't see Competency frameworks, go to Competencies settings and tick Enable competencies.)
      3. Click Add new competency framework
      4. Enter CF1 for Name.
      5. Enter cf1 for Id number
      6. Click Configure scales
      7. Tick any Scale value for the Default.
      8. Tick one or more Scale values for Proficient.
      9. Click Close
      10. Click Save changes
      11. On CF1's Competencies page, click on CF1 in the competencies tree (the one below the Search field) and on the right panel, click Add competency.
      12. Enter C1 for Name.
      13. Enter c1 for Id number.
      14. Click Save changes.
      15. Repeat the above process to create competencies C2 and C3.
      16. Create a course and enrol some students.
      17. Under Course administration, click Competencies.
      18. Click Add competencies to course.
      19. Select C1 and C2 then click Add.
      20. Back on the Course competencies page, click C1 to go to the user competency in course page.
      21. On the user competency in course page, click Rate.
      22. Selecting a Rating and click Rate.
      23. Do this for the other users and other competencies by selecting a user in Jump to user and/or Jump to competency selectors in the right panel.
      Backup with competencies included
      1. Under TC1's Course administration, click Backup.
      2. Check the Backup settings. Confirm that:
        • Include competencies is shown and is checked.
      3. Click Next to go to the Schema settings step, then click Next again to go to the Confirmation and review step.
      4. Enter BackupWithCompetencies.mbz for the Filename.
      5. Check the Backup settings. Confirm that:
        • Include competencies is shown and is checked.
      6. Click Perform backup
        • Confirm that the backup process finishes successfully.
      7. You may also opt to download the backup file.
      Restore with competencies included
      1. Under TC1's Course administration, click Restore.
      2. If you have downloaded BackupWithCompetencies.mbz, you may drag and drop it to the File picker under the Import a backup file section then click restore; or Click Restore for BackupWithCompetencies.mbz in the Course backup area section.
      3. Check the backup settings. Confirm that:
        • Include competencies is shown and is checked.
      4. Select Restore the as a new course then click Continue
      5. On the Settings step, check the Restore settings. Confirm that:
        • Include competencies is shown and is checked.
      6. Click Next to proceed to the Schema step and enter TC2 for the Course short name field.
      7. Then click Next again to proceed to the review step.
      8. On the Review step, check the Backup settings. Confirm that:
        • Include competencies is shown and is checked.
      9. Click Perform restore.
        • Confirm that the course is restored successfully.
      10. Click Continue to get redirected to TC2.
      11. Under Course administration, click Competencies.
        • Confirm that C1 and C2 are listed in the course competencies list.
      12. Click on C1 to go to the user competency in course page.
      13. Select the user that was previously rated using the Jump to user selector field.
        • Confirm that the rating has been preserved.
      Restore not including competencies
      1. Repeat the above restore steps, but this time when you arrive to the Settings step, uncheck Include competencies and proceed as usual.
      2. On the Review step, check the Backup settings. Confirm that:
        • Include competencies is shown and is NOT checked.
      3. Perform the restore.
        • Confirm that the course is restored successfully.
      4. Navigate to the restored course.
      5. Under Course administration, click Competencies.
        • Confirm that the course competencies list is empty.
      Backup with competencies not included
      1. Backup TC1, but this time uncheck Include competencies on the first step.
      2. On the Confirmation and review step, enter BackupWithoutCompetencies.mbz for the Filename.
      3. Check the Backup settings. Confirm that:
        • Include competencies is shown and is NOT checked.
      4. Click Perform backup
        • Confirm that the backup process finishes successfully.
      5. You may also opt to download the backup file.
      Restore with competencies not included
      1. Under TC1's Course administration, click Restore.
      2. If you have downloaded BackupWithoutCompetencies.mbz, you may drag and drop it to the File picker under the Import a backup file section then click restore; or Click Restore for BackupWithoutCompetencies.mbz in the Course backup area section.
      3. Check the backup settings. Confirm that:
        • Include competencies is shown and is NOT checked.
      4. Select Restore into an existing course and tick Delete the contents of the existing course and then restore and tick TC2, then click Continue
      5. On the Settings step, check the Restore settings. Confirm that:
        • Include competencies is shown and is NOT checked.
      6. Click Next to proceed to the Schema step and enter TC2 for the Course short name field.
      7. Then click Next again to proceed to the review step.
      8. On the Review step, check the Backup settings. Confirm that:
        • Include competencies is shown and is NOT checked.
      9. Click Perform restore.
        • Confirm that the course is restored successfully.
      10. Click Continue to get redirected to TC2.
      11. Under Course administration, click Competencies.
        • Confirm that the course competencies list is empty.
      Backup with competencies disabled.
      1. Navigate to Site administration ► Competencies ► Competency settings.
      2. Uncheck Enable competencies.
      3. Click Save changes.
      4. Navigate back to the course.
      5. Under TC1’s Course administration, click Backup
        • Confirm that Include competencies is NOT shown
      6. On the Confirmation and review step, enter BackupWithCompetenciesDisabled.mbz for the Filename.
      7. Check the Backup settings. Confirm that:
        • Include competencies is NOT shown
      8. Click Perform backup
        • Confirm that the backup process finishes successfully.
      9. You may also opt to download the backup file.
      Restore backup with competencies disabled
      1. Navigate to Site administration ► Competencies ► Competency settings.
      2. Mark Enable competencies as checked.
      3. Click Save changes.
      4. Under TC1's Course administration, click Restore.
      5. If you have downloaded BackupWithCompetenciesDisabled.mbz, you may drag and drop it to the File picker under the Import a backup file section then click restore; or Click Restore for BackupWithoutCompetencies.mbz in the Course backup area section.
      6. Check the backup settings. Confirm that:
        • Include competencies is shown and is NOT checked.
      7. Select Restore into an existing course and tick Delete the contents of the existing course and then restore and tick TC2, then click Continue
      8. On the Settings step, check the Restore settings. Confirm that:
        • Include competencies is shown and is NOT checked.
      9. Click Next to proceed to the Schema step and enter TC2 for the Course short name field.
      10. Then click Next again to proceed to the review step.
      11. On the Review step, check the Backup settings. Confirm that:
        • Include competencies is shown and is NOT checked.
      12. Click Perform restore.
        • Confirm that the course is restored successfully.
      13. Click Continue to get redirected to TC2.
      14. Under Course administration, click Competencies.
        • Confirm that the course competencies list is empty.
      Restore backup that contains competencies with competencies disabled.
      1. Navigate to Site administration ► Competencies ► Competency settings and disable competencies.
      2. Restore BackupWithCompetencies.mbz into TC2.
      3. In the Confirm step, confirm that:
        • Include competencies is shown and checked
      4. In the Settings step, confirm that:
        • Include competencies is NOT shown
      5. In the Review step, confirm that:
        • Include competencies is NOT shown
      6. After performing the restore, confirm that:
        • The course is restored successfully.
      7. Navigate to Site administration ► Competencies ► Competency settings and enable competencies.
      8. Under TC2's Course administration, click Competencies.
        • Confirm that the course competencies list is empty.
      Show
      Setup Login as admin. Navigate to Site administration ► Competencies ► Competency frameworks. (If you don't see Competency frameworks , go to Competencies settings and tick Enable competencies .) Click Add new competency framework Enter CF1 for Name. Enter cf1 for Id number Click Configure scales Tick any Scale value for the Default. Tick one or more Scale values for Proficient. Click Close Click Save changes On CF1's Competencies page, click on CF1 in the competencies tree (the one below the Search field) and on the right panel, click Add competency . Enter C1 for Name. Enter c1 for Id number. Click Save changes . Repeat the above process to create competencies C2 and C3. Create a course and enrol some students. Under Course administration, click Competencies . Click Add competencies to course . Select C1 and C2 then click Add . Back on the Course competencies page, click C1 to go to the user competency in course page. On the user competency in course page, click Rate . Selecting a Rating and click Rate . Do this for the other users and other competencies by selecting a user in Jump to user and/or Jump to competency selectors in the right panel. Backup with competencies included Under TC1's Course administration, click Backup. Check the Backup settings. Confirm that: Include competencies is shown and is checked. Click Next to go to the Schema settings step, then click Next again to go to the Confirmation and review step. Enter BackupWithCompetencies.mbz for the Filename. Check the Backup settings. Confirm that: Include competencies is shown and is checked. Click Perform backup Confirm that the backup process finishes successfully. You may also opt to download the backup file. Restore with competencies included Under TC1's Course administration, click Restore. If you have downloaded BackupWithCompetencies.mbz , you may drag and drop it to the File picker under the Import a backup file section then click restore; or Click Restore for BackupWithCompetencies.mbz in the Course backup area section. Check the backup settings. Confirm that: Include competencies is shown and is checked. Select Restore the as a new course then click Continue On the Settings step, check the Restore settings. Confirm that: Include competencies is shown and is checked. Click Next to proceed to the Schema step and enter TC2 for the Course short name field. Then click Next again to proceed to the review step. On the Review step, check the Backup settings. Confirm that: Include competencies is shown and is checked. Click Perform restore . Confirm that the course is restored successfully. Click Continue to get redirected to TC2. Under Course administration, click Competencies . Confirm that C1 and C2 are listed in the course competencies list. Click on C1 to go to the user competency in course page. Select the user that was previously rated using the Jump to user selector field. Confirm that the rating has been preserved. Restore not including competencies Repeat the above restore steps, but this time when you arrive to the Settings step, uncheck Include competencies and proceed as usual. On the Review step, check the Backup settings. Confirm that: Include competencies is shown and is NOT checked. Perform the restore. Confirm that the course is restored successfully. Navigate to the restored course. Under Course administration, click Competencies . Confirm that the course competencies list is empty. Backup with competencies not included Backup TC1, but this time uncheck Include competencies on the first step. On the Confirmation and review step, enter BackupWithoutCompetencies.mbz for the Filename. Check the Backup settings. Confirm that: Include competencies is shown and is NOT checked. Click Perform backup Confirm that the backup process finishes successfully. You may also opt to download the backup file. Restore with competencies not included Under TC1's Course administration, click Restore. If you have downloaded BackupWithoutCompetencies.mbz , you may drag and drop it to the File picker under the Import a backup file section then click restore; or Click Restore for BackupWithoutCompetencies.mbz in the Course backup area section. Check the backup settings. Confirm that: Include competencies is shown and is NOT checked. Select Restore into an existing course and tick Delete the contents of the existing course and then restore and tick TC2 , then click Continue On the Settings step, check the Restore settings. Confirm that: Include competencies is shown and is NOT checked. Click Next to proceed to the Schema step and enter TC2 for the Course short name field. Then click Next again to proceed to the review step. On the Review step, check the Backup settings. Confirm that: Include competencies is shown and is NOT checked. Click Perform restore . Confirm that the course is restored successfully. Click Continue to get redirected to TC2. Under Course administration, click Competencies . Confirm that the course competencies list is empty. Backup with competencies disabled. Navigate to Site administration ► Competencies ► Competency settings. Uncheck Enable competencies . Click Save changes . Navigate back to the course. Under TC1’s Course administration, click Backup Confirm that Include competencies is NOT shown On the Confirmation and review step, enter BackupWithCompetenciesDisabled.mbz for the Filename. Check the Backup settings. Confirm that: Include competencies is NOT shown Click Perform backup Confirm that the backup process finishes successfully. You may also opt to download the backup file. Restore backup with competencies disabled Navigate to Site administration ► Competencies ► Competency settings. Mark Enable competencies as checked. Click Save changes . Under TC1's Course administration, click Restore. If you have downloaded BackupWithCompetenciesDisabled.mbz , you may drag and drop it to the File picker under the Import a backup file section then click restore; or Click Restore for BackupWithoutCompetencies.mbz in the Course backup area section. Check the backup settings. Confirm that: Include competencies is shown and is NOT checked. Select Restore into an existing course and tick Delete the contents of the existing course and then restore and tick TC2 , then click Continue On the Settings step, check the Restore settings. Confirm that: Include competencies is shown and is NOT checked. Click Next to proceed to the Schema step and enter TC2 for the Course short name field. Then click Next again to proceed to the review step. On the Review step, check the Backup settings. Confirm that: Include competencies is shown and is NOT checked. Click Perform restore . Confirm that the course is restored successfully. Click Continue to get redirected to TC2. Under Course administration, click Competencies . Confirm that the course competencies list is empty. Restore backup that contains competencies with competencies disabled. Navigate to Site administration ► Competencies ► Competency settings and disable competencies. Restore BackupWithCompetencies.mbz into TC2. In the Confirm step, confirm that: Include competencies is shown and checked In the Settings step, confirm that: Include competencies is NOT shown In the Review step, confirm that: Include competencies is NOT shown After performing the restore, confirm that: The course is restored successfully. Navigate to Site administration ► Competencies ► Competency settings and enable competencies. Under TC2's Course administration, click Competencies . Confirm that the course competencies list is empty.

      We should add an option to exclude Competencies from the backups. Optionally we could have an option to include the competencies but exclude the user data associated with them.

      Quote from MDL-53716.

      Eloy also pointed out we don't have a 'global backup setting' for competencies - this can be seperate issue, but you might decide to tackle it here too:

      "if you look to backup/moodle2/backup_course_task.class.php (and also restore) you'll find that a good number of steps (groups, questions...) are controlled by those backup/restore settings.

      Right now the competencies are NOT controlled by any setting. And I'm just guessing if they should (if there is a use case for it)."

      That setting should be disabled when competencies are not enabled (\core_competency\api::is_enabled).

            jpataleta Jun Pataleta
            fred Frédéric Massart
            Frédéric Massart Frédéric Massart
            Dan Poltawski Dan Poltawski
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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