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

MarcoR’s picture

Version: » 5.x-1.x-dev

sounds 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.

sprsquish’s picture

Category: feature » task
prfctns6@gmail.com’s picture

I 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?

sprsquish’s picture

My 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).

prfctns6@gmail.com’s picture

A plug-in is a great idea! As I get time to work on it, I'll go in that direction. Thanks!

prfctns6@gmail.com’s picture

I'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.

prfctns6@gmail.com’s picture

Status: Active » Fixed
sprsquish’s picture

Status: Fixed » Closed (fixed)