Show
Before the upgrade
For this test it is required to have a course with few users enrolled (at least one as teacher) and a group.
Log in as admin and go to calendar.
Create a site and category events.
Go to Site administration > Users > Privacy and policies > Privacy settings .
Enable Contact the privacy officer tool_dataprivacy | contactdataprotectionofficer setting and save.
Create a course and enrol teacher user, s1 and s2 as students.
Create 2 groups in the course.
Log in as a teacher and go to calendar.
Create course , group and user events .
Click Manage subscriptions and add one course subscription with the following url as Calendar URL :
https://calendar.google.com/calendar/ical/en.usa%23holiday%40group.v.calendar.google.com/public/basic.ics
Go to the course and add a new assignment .
On the assignment menu, select User overrides and then click Add user override .
Select any user, change Allow submissions from date to a date in the future and save.
On the assignment menu again, select Group overrides and then click Add group override .
Create group overrides for one or two groups in the course.
Select any group, change the dates to a date in the future and save.
Go back to the course and add a lesson and a quiz activities
Repeat steps [7 to 11] above and add a user and a group overrides for lesson and quiz.
Look the mdl_event table, please note that all events have the userid set to a number different of zero (userid of the user who created the event).
Look the mdl_event_subscriptions table, please note that all events subscriptions have the userid set to a number different of zero.
Login as student 1
Click Manage subscriptions and add one user subscriptions with different with the following url as Calendar URL :
https://calendar.google.com/calendar/ical/en.usa%23holiday%40group.v.calendar.google.com/public/basic.ics
After upgrade
Look the mdl_event table and make sure the only events that have a userid set are the user and user overrides type of events.
All shared events (site, category, course, group, group overrides) should have been updated to set userid to zero .
Look the mdl_event_subscriptions table, make sure the only subscription that have a userid set are the subscription of user type of events.
Repeat the steps [1 to 13] from the test above.
Look the mdl_event table and make sure that all shared events (site, category, course, group, group overrides) have the userid field set to zero .
Look the mdl_event_subscription and make sure that only user type of subscription should have the user id set, the course type of subscription should have userid set to zero.
Data request test
Log in as teacher who created the events above and go to your profile page .
Under Privacy and policies section, click Data requests > New request .
Set Type field to Export all my personal data and save.
In another window, log in as admin and go to Site administration > Users > Privacy and policies > Data requests
Approve the request made by the user
Run cron.
As teacher, go to your profile page > Data requests.
Note the request has Download ready status, under Actions menu, click Download .
Open the zip file and extract the content.
In the extracted files, go to System_.1 > User USERFULLNAME_.USERID > Calendar > Events folder.
Go through the directories, opening each js/json file and make sure it is related to a user/user override event.
In the extracted files, go to System_.1 > User USERFULLNAME_.USERID > Calendar > Subscriptions folder.
Go through the js/json file and make sure it is related to a user type of subscription.
As teacher, go to your profile page > Data requests.
Set Type field to Delete all of my personal data and save.
In another window, as admin and go to Site administration > Users > Privacy and policies > Data requests
Approve the Delete data request made by the user and run cron
Query the mdl_event and mdl_event_subscriptions and make sure all user personal (user/user overrides) have been removed.
Make sure the shared events (site, category, course, group, group overrides) still exists.