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

Improve bulk deletion

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Test in Boost and Clean.

      Pre-requisites

      1. Create multiple users.

      Test 1.

      1. Login as Admin.
      2. Go to 'Site administration' > 'Privacy and policies' > 'Privacy settings'.
        • make sure a setting 'Create automatic data deletion requests' exists.
        • make sure the default value of this setting:
          • master:  setting is enabled by default.
          • 35, 34, 33:  setting is disabled by default.
      3. Enable the setting 'Create automatic data deletion requests' (if not already enabled).
      4. Go to 'Site administration' > 'Users' > 'Bulk user actions'.
      5. Select several users from the list.
      6. From the 'With selected users...' select 'Delete'.
      7. Confirm the deletion.
      8. Go to 'Site administration' > 'Users' > 'Privacy and policies' > 'Data requests'.
        • make sure delete data requests are created for the deleted users.
        • make sure the requests contain the message "Automatically created upon user deletion."
        • make sure you can properly filter the results by the creation method ('Creation: Manually/Automatically')
      9. Run the cron. ('php admin/cli/cron.php')
      10. Approve the requests and run the cron once again.
        • make sure everything works as expected.

      Test 2.

      1. Login as Admin.
      2. Go to 'Site administration' > 'Privacy and policies' > 'Privacy settings'.
        • make sure a setting 'Create automatic data deletion requests' exists.
        • make sure the default value of this setting:
          • master:  setting is enabled by default.
          • 35, 34, 33:  setting is disabled by default.
      3. Disable the setting 'Create automatic data deletion requests' (if not already disabled).
      4. Go to 'Site administration' > 'Users' > 'Bulk user actions'.
      5. Select several users from the list.
      6. From the 'With selected users...' select 'Delete'.
      7. Confirm the deletion.
      8. Go to 'Site administration' > 'Users' > 'Privacy and policies' > 'Data requests'.
        • make sure delete data requests are NOT being created for the deleted users.

      Test 3. 

      1. Login as Admin.
      2. Go to 'Site administration' > 'Privacy and policies' > 'Privacy settings'.
        • make sure a setting 'Create automatic data deletion requests' exists.
        • make sure the default value of this setting:
          • master:  setting is enabled by default.
          • 35, 34, 33:  setting is disabled by default.
      3. Disable the setting 'Create automatic data deletion requests' (if not already disabled).
      4. Go to 'Site administration' > 'Users' > 'Bulk user actions'.
      5. Select several users from the list.
      6. From the 'With selected users...' select 'Delete'.
      7. Confirm the deletion.
      8. Go to 'Site administration' > 'Users' > 'Privacy and policies' > 'Data requests'.
        • make sure delete data requests are NOT being created for the deleted users.
      9. Run the scheduled task to create delete data requests for pre-existing deleted users ('php admin/tool/task/cli/schedule_task.php --execute='tool_dataprivacy\task\delete_existing_deleted_users').
      10. Go to Site administration > Users > Privacy and policies > Data requests.
      11. Make sure data delete data requests have NOT been created for the deleted users. 
      12. Go to 'Site administration' > 'Privacy and policies' > 'Privacy settings'.
      13. Enable the setting 'Create automatic data deletion requests'.
      14. Run the scheduled task to create delete data requests for pre-existing deleted users ('php admin/tool/task/cli/schedule_task.php --execute='tool_dataprivacy\task\delete_existing_deleted_users').
      15. Go to Site administration > Users > Privacy and policies > Data requests.
      16. Make sure data delete data requests have been created for the deleted users. 
      17. Additionally make sure that further actions such as viewing, approving and denying these particular requests works as expected. 
      Process the deletions
      1. Ensure you have some approved deletion requests
      2. Run cron
      Show
      Test in Boost and Clean. Pre-requisites 1. Create multiple users. Test 1. Login as Admin. Go to 'Site administration' > 'Privacy and policies' > 'Privacy settings'. make sure a setting 'Create automatic data deletion requests' exists. make sure the default value of this setting: master:   setting is enabled by default. 35, 34, 33:   setting is disabled by default. Enable the setting 'Create automatic data deletion requests' (if not already enabled). Go to 'Site administration' > 'Users' > 'Bulk user actions'. Select several users from the list. From the 'With selected users...' select 'Delete'. Confirm the deletion. Go to 'Site administration' > 'Users' > 'Privacy and policies' > 'Data requests'. make sure delete data requests are created for the deleted users. make sure the requests contain the message "Automatically created upon user deletion." make sure you can properly filter the results by the creation method ('Creation: Manually/Automatically') Run the cron. ('php admin/cli/cron.php') Approve the requests and run the cron once again. make sure everything works as expected. Test 2. Login as Admin. Go to 'Site administration' > 'Privacy and policies' > 'Privacy settings'. make sure a setting 'Create automatic data deletion requests' exists. make sure the default value of this setting: master:   setting is enabled by default. 35, 34, 33:   setting is disabled by default. Disable the setting 'Create automatic data deletion requests' (if not already disabled). Go to 'Site administration' > 'Users' > 'Bulk user actions'. Select several users from the list. From the 'With selected users...' select 'Delete'. Confirm the deletion. Go to 'Site administration' > 'Users' > 'Privacy and policies' > 'Data requests'. make sure delete data requests are NOT being created for the deleted users. Test 3.   Login as Admin. Go to 'Site administration' > 'Privacy and policies' > 'Privacy settings'. make sure a setting 'Create automatic data deletion requests' exists. make sure the default value of this setting: master:   setting is enabled by default. 35, 34, 33:   setting is disabled by default. Disable the setting 'Create automatic data deletion requests' (if not already disabled). Go to 'Site administration' > 'Users' > 'Bulk user actions'. Select several users from the list. From the 'With selected users...' select 'Delete'. Confirm the deletion. Go to 'Site administration' > 'Users' > 'Privacy and policies' > 'Data requests'. make sure delete data requests are NOT being created for the deleted users. Run the scheduled task to create delete data requests for pre-existing deleted users (' php admin/tool/task/cli/schedule_task.php --execute='tool_dataprivacy\task\delete_existing_deleted_users '). Go to Site administration > Users > Privacy and policies > Data requests. Make sure data delete data requests have NOT been created for the deleted users.   Go to 'Site administration' > 'Privacy and policies' > 'Privacy settings'. Enable the setting 'Create automatic data deletion requests'. Run the scheduled task to create delete data requests for pre-existing deleted users (' php admin/tool/task/cli/schedule_task.php --execute='tool_dataprivacy\task\delete_existing_deleted_users '). Go to Site administration > Users > Privacy and policies > Data requests. Make sure data delete data requests have been created for the deleted users.   Additionally make sure that further actions such as viewing, approving and denying these particular requests works as expected.  Process the deletions Ensure you have some approved deletion requests Run cron
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Epic Link:
    • Pull 3.5 Branch:
      MDL-62564-integration-35-1
    • Pull Master Branch:
      MDL-62564-integration-master-1
    • Sprint:
      GDPR Followup Sprint 1

      Description

      Improve the bulk deletion process.

      "Admin needs to be able to bulk select (via same multi-user select as bulk user actions) or a CSV upload to enable a data deletion of users. This should work on live users and "deleted" ones."

      Investigation

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h