{"id":6198,"date":"2011-12-21T07:06:34","date_gmt":"2011-12-21T12:06:34","guid":{"rendered":"http:\/\/www.ezrasf.com\/wplog\/?p=6198"},"modified":"2011-12-20T14:37:54","modified_gmt":"2011-12-20T19:37:54","slug":"back-door-restore","status":"publish","type":"post","link":"https:\/\/www.ezrasf.com\/wplog\/2011\/12\/21\/back-door-restore\/","title":{"rendered":"Back Door Restore"},"content":{"rendered":"<p>Humans make mistakes. Our clients&#8217; administrators some times do very bad things without malicious intent. The &#8220;Deny Access&#8221; button is too close to the &#8220;Delete&#8221; one. About 160 student accounts were deleted.<\/p>\n<p>The hypothesis came to me that sections keep data when a student is removed. Maybe it keeps the data when a student&#8217;s account is deleted. If I can trick the system into thinking the same student came back, then maybe it will relink the data. Everyone is happy.<\/p>\n<p>To test this hypothesis, I&#8230;<\/p>\n<ul>\n<li>Exported a copy of the grade book for my test student account in a test CE\/Vista 8.0.6 system. Should the test go bad, then I could at least restore the grades.<\/li>\n<li>Copied the account&#8217;s profile to a text file for the user name, sourcedid.source, and\u00c2\u00a0sourcedid.id.<\/li>\n<li>Created a new account, gave it \u00c2\u00a0the same user name, sourcedid.source, and sourcedid.id (and first, last, password).<\/li>\n<li>Enrolled the account into the original class as a student.<\/li>\n<\/ul>\n<p>The grades were missing. Clearly my hypothesis was wrong. Data is not kept around for deleted students like it for unenrolled students. Which sucks.<\/p>\n<p>In my retest, I&#8230;<\/p>\n<ul>\n<li>Unrolled the same account. The grade book showed the student&#8217;s data in red, meaning the account was unenrolled but the data still there.<\/li>\n<li>Deleted the same account. The grade book still showed the student&#8217;s data in red.<\/li>\n<li>Created a new account with a 2 in the user name and added it to the section. The grade book showed the new account not the one I deleted.<\/li>\n<\/ul>\n<p>I hope this means I still saw the data post-delete because of the cache services. Changing the enrollment changed what was stored in the cache so the old account disappeared at that point. A couple more tries confirms the behavior of the student appearing in the grade book post-delete.<\/p>\n<p>Still disconcerting deleted users appear in the grade book.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Humans make mistakes. Our clients&#8217; administrators some times do very bad things without malicious intent. The &#8220;Deny Access&#8221; button is too close to the &#8220;Delete&#8221; one. About 160 student accounts were deleted. The hypothesis came to me that sections keep data when a student is removed. Maybe it keeps the data when a student&#8217;s account [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[22],"tags":[733,2292,2293],"class_list":["post-6198","post","type-post","status-publish","format-standard","hentry","category-bbvista","tag-enrollment","tag-grade-book","tag-sourcedid"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1rUBW-1BY","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/6198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/comments?post=6198"}],"version-history":[{"count":0,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/6198\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/media?parent=6198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/categories?post=6198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/tags?post=6198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}