Closed (duplicate)
Project:
Privatemsg
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2011 at 22:35 UTC
Updated:
22 Jan 2011 at 14:50 UTC
It would be awesome of devel_generate could create private message threads. This way you could truncate your pm_message and pm_index tables from live when going to your development environment but still be able to test with large privatemsg datasets.
I've attached a patch that does this. There might be some areas the patch could be improved on (like using batch during drush) but it's a good start and I'd at least like to open conversation on this in case other people would find it useful.
| Comment | File | Size | Author |
|---|---|---|---|
| devel.patch | 7.81 KB | elliotttf |
Comments
Comment #1
salvisA more promising strategy would be to work out a hook in devel_generate that would allow any client module to offer its product(s) for generation through devel_generate, but I'd wait for moshe's opinion...
IAC, we'd need a D7 implementation first, or at least in parallel.
Comment #2
moshe weitzman commentedprivatemsg needs to do this by itself. similar to how votingapi generates votes without devel involvement.
Comment #3
berdirThere is already an existing issue, see #502666: devel_generate functionality.