I wanted to quickly find out if anyone has been able to generate random relationships between its users ( also randomly generated by devel generate) to simulate a networking site? In my limited search I have found a solution to this, would there be a interest among module maintainers to look at it if I write one? In short I wanna find out if people would find it useful?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ajayg’s picture

I would be interested to try such thing. Not in production but just more for testing.

ajayg’s picture

Any further update on this, dipen. Can you please share?

mrf’s picture

Status: Active » Postponed

I am postponing any 6.x feature requests that don't have a current applicable patch to help sort the large list of open features.

Please feel free to set to 'needs review' once a patch is included.

SebCorbin’s picture

Version: 6.x-1.0-rc4 » 7.x-1.x-dev
FileSize
3.75 KB

Here's a drush hook to generate random relationships between existing users

mrf’s picture

I did some work on http://drupal.org/sandbox/mrf/1520184

I totally forget where I left that, but think it works better as a standalone module based on the limited audience. SebCorbin, I can add you on to that if you are interested.

SebCorbin’s picture

Status: Postponed » Needs review
FileSize
3.82 KB

Creating a module just for that is not necessary, *.drush.inc modules are just loaded during drush bootstrap.

I added an invoke option for firing the hook_user_relationships_save with a given param

Andre-B’s picture

Status: Needs review » Reviewed & tested by the community
Berdir’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.