Add Devel Generate plugin for generating groups

Created on 11 June 2016, over 8 years ago
Updated 22 January 2024, 11 months ago

Problem/Motivation

In order to test a site it can be helpful to generate dummy content. The devel generate module (part of the devel project) helps with this. It does not, however, have built-in support for Group (and rightly so). It is possible for Group module to provide the needed plugins itself, so that this option becomes available when both modules are installed.

Proposed resolution

Provide devel generate plugins for groups and group content.

Remaining tasks

  • Create MR
  • Add tests to the MR (can be based on tests in devel generate)
  • Review
  • Merge

User interface changes

None to the main module. Devel generate will show two extra options for generting content (groups and group content).

API changes

None.

Data model changes

None.

Original report by jludwig

The company I work for (BioRAFT) needed to be able to generate groups for testing purposes. Here's a patch with my work.

It's basically a copy of Devel's ContentDevelGenerate.php that was altered to work for groups and had some code changed to make it more future proof (e.g. DBAL instead of db_query, etc).

It can currently generate groups and group members.

I have not tested the Drush integration yet, but it should just work.

Todo: either a generic plugin for generating group content or a plugin for generating gnode group content.

I hope someone finds this useful!

Regards,
Justin

✨ Feature request
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jludwig

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024