Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

History not preserved in backup file #37

Closed
BuddyEthridge opened this issue Jun 4, 2012 · 2 comments
Closed

History not preserved in backup file #37

BuddyEthridge opened this issue Jun 4, 2012 · 2 comments

Comments

@BuddyEthridge
Copy link

Can we investigate the possibility of preserving the quickmail history in the backup file for restore purposes? There have been several requests (only one with Moodle so far) to see email correspondence via LMS at LSU for legal and other reasons.

@philcali
Copy link
Contributor

philcali commented Jun 4, 2012

Very cool. If I'm thinking about this correctly, I think this will require specific back and restore hooks at the module level, but ultimately, doable. I've been interested in doing this sort of thing in Moodle, and I think Quickmail is a great first candidate.

@philcali
Copy link
Contributor

philcali commented Jun 6, 2012

I got quickmail email logs backup and restorable, but I've discovered some interesting caveats in the restore process...

  1. There's no User data setting for blocks. Quickmail can define its own backup settings which would be useful for backing up alternate emails, drafts, and such. I think this is the route we should take.
  2. I actually discovered a very deep restore enrollment bug which does not assign the roles correctly after a restore: https://github.com/lsuits/moodle/blob/master/backup/moodle2/restore_course_task.class.php#L70. It attempts to create a role assignment to user enrollments that do not exist yet, (line 74). This is a significant problem because it actually enrols the users without the role assignment. It works fine for manual enrollments, but fails for UES.

Ging back to 1, though, I think a couple of settings would be nice, like:

  • An option to restore history (enabled default)
  • An option to clear out existing history upon restore (disabled default)

@philcali philcali closed this as completed Jun 6, 2012
adamann2 pushed a commit to ITRC/moodle-block_quickmail that referenced this issue Jun 26, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants