Add `drush dcer --bundles` option to limit export

Created on 21 September 2018, about 6 years ago
Updated 23 August 2024, 3 months ago

Problem/Motivation

It's useful to be able to specify bundles to export rather than exporting all bundles for an entity type. Patch attached adds a --bundles option to the drush 'dcer' command.

Steps to reproduce

drush dcer --help
Could not open input file: vendor/bin/drush
/var/www/html/web $ drush dcer --help
Exports an entity and all its referenced entities.

Arguments:
 entity_type                               The entity type to export.      
 entity_id                                 The ID of the entity to export.

Options:
 --bundles=<article,page>                  A comma-separated list of bundles to limit export to.         
 --folder                                  Folder to export to, entities are grouped by entity type into 
                                           directories.

Proposed resolution

Limiting queries by bundle list, throw exception when filter is not applicable (missing bundle field)

Remaining tasks

review/commit

User interface changes

no

API changes

no

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇨🇦Canada bgilhome Victoria

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