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.

CommentFileSizeAuthor
devel.patch7.81 KBelliotttf

Comments

salvis’s picture

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

moshe weitzman’s picture

Project: Devel » Privatemsg
Component: devel_generate » Code

privatemsg needs to do this by itself. similar to how votingapi generates votes without devel involvement.

berdir’s picture

Status: Needs review » Closed (duplicate)

There is already an existing issue, see #502666: devel_generate functionality.