Issue Details (XML | Word | Printable)

Key: MDL-6856
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Eloy Lafuente (stronk7)
Reporter: Eloy Lafuente (stronk7)
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Some user-related tables aren't in backup/restore

Created: 06/Oct/06 01:35 AM   Updated: 04/Feb/08 08:53 AM
Return to search
Component/s: Backup
Affects Version/s: 1.7
Fix Version/s: 1.9

Participants: Eloy Lafuente (stronk7), Martin Dougiamas and Yu Zhang
Security Level: None
Resolved date: 04/Feb/08
Affected Branches: MOODLE_17_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
I was checking MDL-6854 when I "discovered" some new tables:

- mdl_user_info_field
- mdl_user_info_category
- mdl_user_info_data

They seem to be there in order to support new field for the user profile (or something similar).

The question for this bug is... should all this information be supported by backup/restore? If not, NP. Else...

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Eloy Lafuente (stronk7) made changes - 06/Oct/06 01:35 AM
Field Original Value New Value
Assignee Eloy Lafuente [ stronk7 ] Martin Dougiamas [ dougiamas ]
Yu Zhang added a comment - 12/Oct/06 09:51 AM
If I remember correctly Shane said these fields won't be used in 1.7, but will be in for 1.8 ...

Martin Dougiamas added a comment - 16/Oct/06 11:26 AM
Bumping to 1.8

Martin Dougiamas made changes - 16/Oct/06 11:26 AM
Assignee Martin Dougiamas [ dougiamas ] Shane Elliott [ ikawhero ]
Fix Version/s 1.8 [ 10130 ]
Martin Dougiamas added a comment - 21/Feb/07 09:30 PM
Shane, have you had any thoughts about how backup/restore could/should work?

I think we talked about this and decided that

  • it worked fine already on the same server
  • didn't make a lot of sense on another server

yes?


Martin Dougiamas made changes - 21/Feb/07 09:30 PM
Priority Major [ 3 ] Minor [ 4 ]
Martin Dougiamas made changes - 23/Feb/07 10:04 AM
Fix Version/s 1.8 [ 10130 ]
Fix Version/s 1.9 [ 10190 ]
Martin Dougiamas added a comment - 23/Jan/08 05:19 PM
Thanks, Eloy! $

Martin Dougiamas made changes - 23/Jan/08 05:19 PM
Assignee Shane Elliott [ ikawhero ] Eloy Lafuente (stronk7) [ stronk7 ]
Eloy Lafuente (stronk7) added a comment - 30/Jan/08 10:02 AM
Oki, now both user profile fields and user tags are included in backup.

The strategy to restore (tomorrow) will be:

1-Only restore that info (both) when the user is being created.
2-Only restore user profile fileds if there is one profile field with the same name & type in destination server
3-Only restore user tags if tags are enable in destination server.

How does it sound? Ciao


Eloy Lafuente (stronk7) committed 1 file to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 30/Jan/08 10:09 AM
Now user profile fileds and user tags are included in backups. Part of MDL-6856
MODIFY backup/backuplib.php   Rev. 1.179.2.13    (+38 -0 lines)
Eloy Lafuente (stronk7) committed 1 file to 'Moodle CVS' - 30/Jan/08 10:10 AM
Now user profile fileds and user tags are included in backups. Part of MDL-6856 ; merged from 19_STABLE
MODIFY backup/backuplib.php   Rev. 1.193    (+39 -1 lines)
Martin Dougiamas added a comment - 31/Jan/08 05:06 PM
Sounds perfect! +1 thanks!

Eloy Lafuente (stronk7) committed 1 file to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 03/Feb/08 08:58 AM
Now we are reading user_profile_fields and user_tags + some small fixes on roles. MDL-6856
MODIFY backup/restorelib.php   Rev. 1.283.2.15    (+96 -47 lines)
Eloy Lafuente (stronk7) committed 1 file to 'Moodle CVS' - 03/Feb/08 08:59 AM
Now we are reading user_profile_fields and user_tags + some small fixes on roles. MDL-6856 ; merged from 19_STABLE
MODIFY backup/restorelib.php   Rev. 1.301    (+96 -47 lines)
Eloy Lafuente (stronk7) committed 1 file to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 04/Feb/08 08:51 AM
Now custom profile fields and user tags are restored. MDL-6856
.CVS: ----------------------------------------------------------------------
MODIFY backup/restorelib.php   Rev. 1.283.2.20    (+54 -10 lines)
Eloy Lafuente (stronk7) committed 1 file to 'Moodle CVS' - 04/Feb/08 08:53 AM
Now custom profile fields and user tags are restored. MDL-6856 ; merged from 19_STABLE
MODIFY backup/restorelib.php   Rev. 1.305    (+55 -11 lines)
Eloy Lafuente (stronk7) added a comment - 04/Feb/08 08:53 AM
Done, the logic above is now implemented in 19_STABLE and HEAD.

Closing. Ciao


Eloy Lafuente (stronk7) made changes - 04/Feb/08 08:53 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]