Export predefined list of entities

Created on 16 September 2024, 2 months ago
Updated 17 September 2024, about 2 months ago

Problem/Motivation

The existing Drush command ("default-content-deploy:export") has not option to load list of entities from a file or configuration.

I think, it would be great, if user can export some list of predefined entities within one command execution. Existing command forces user to choose one of the entity types.

Motivation

During development, website can contain plenty of content on development environment, but just part of it should be used on some another environment. Drupal projects might have some predefined lists of entities, that should be tested through multiple environments. It's hard to export such content using existing Drush command, when you have multiple entity types and quite long list of such entities.

Proposed resolution

I think, there could be created another Drush command, that would load list of entities from some predefined directory. This directory can be set as option in such new command. The similar feature contains "default_content" module: entities to be exported are defined by their entity type and UUIDs. The information could be stored in some predefined YAML file (stored in a custom modules).

If such feature is accepted, then it is maybe better to create new Drush command instead of editing the existing one. The existing commnand requires to define entity type, but the list mentioned above could contain entities from various entity types.

I am willing to develop such feature in following days.

✨ Feature request
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia tomas.teicher

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

Comments & Activities

Production build 0.71.5 2024