Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: 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 CreditAttribution: sprsquish commentedComment #3
prfctns6@gmail.com CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: prfctns6@gmail.com commentedComment #8
sprsquish CreditAttribution: sprsquish commented