Closed (fixed)
Project:
User Relationships
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Critical
Category:
Task
Assigned:
Reporter:
Created:
16 Aug 2007 at 04:09 UTC
Updated:
4 Oct 2007 at 04:26 UTC
Need a script that will migrate datasets from the Buddylist module to the User Relationships module.
Tentative ideas:
Create a new temporary module with an interface allowing admins the opportunity to choose which relationship should be created between users.
Comments
Comment #1
marcor commentedsounds good! Otherwise it would be enough to have the migrator creates a "buddy" relationship that could be changed or renamed by the admin. (if the user relationship configuration provides this)
+1 (a mentioned in another thread here)
I would like to help testing this.
Comment #2
sprsquish commentedComment #3
prfctns6@gmail.com commentedI started working on a script to do this.
Jeff, what's your vision about where/how this script should be executed? It's a one-time only thing that should be done after at least one relationship type has been set up, since you need to have a type to set the migrated relationships to. I think it should set a variable after it runs so it never runs more than once.
I think the only configurable option is what type to make the migrated relationships. But maybe you want more config options, like only migrate relationships that were created in a certain timeframe, or ... I don't know what else.
Your thoughts?
Comment #4
sprsquish commentedMy original thought was to create a plugin (UR Migrator). That way we'd have all the power of a full module without having to hack some sort of interface up. The interface would ensure there was at least one relationship type available. The admin would select the type and hit "Migrate" or somethin' to run the script. After being run it'd let the admin know if it was successful or not and then tell them to uninstall the module. That way it's the admin's responsibility to only run the migration once then uninstall the plugin (I'm lazy like that).
Comment #5
prfctns6@gmail.com commentedA plug-in is a great idea! As I get time to work on it, I'll go in that direction. Thanks!
Comment #6
prfctns6@gmail.com commentedI've checked in 1.0 of the user_relationship_migrate plugin, which migrates Buddy List relationships to User Relationships. See the README.txt for important information about doing the migration. Let me know if you have any questions, problems or enhancement requests.
Comment #7
prfctns6@gmail.com commentedComment #8
sprsquish commented