This project is not covered by Drupal’s security advisory policy.

Provides a Drush command to assign global directory facets (localgov_directories_facets) to a microsite group (Drupal Group module).

Features

Assign facets of specific types to a group:

drush facet-group:assign --group-id=5 --facet-types=location,type_of_activity,cost

Assign all facet types:

drush facet-group:assign --group-id=5 --all-facet-types

Reset progress and start fresh:

drush facet-group:assign --group-id=5 --all-facet-types --reset

Options

Option Type Default Description
--group-id integer required Group ID to assign facets to
--facet-types string Comma-separated list of facet bundle types
--all-facet-types boolean false Process all facet types
--reset boolean false Clear progress tracker and restart
--plugin string group_localgov_directories_facets Group relationship plugin ID

Progress tracking

The command stores processed facet IDs in Drupal state (facet_group_assign.processed). If interrupted, re-running the same command will skip already-processed facets. Use --reset to clear the tracker and start from scratch.

Output summary

After completion, the command prints:

  • Per facet type success/failure counts
  • Number of previously assigned facets (skipped)
  • Total new assignments
  • List of failed facet IDs (if any)

Additional Requirements

  • group
  • localgov_directories (provides the localgov_directories_facets entity type)
Supporting organizations: 
Testing and documentation.

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Automation, Developer tools, Site structure
  • Ecosystem: Groups
  • Created by robert castelo on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases