New command to pull a specific list of channels

Created on 18 October 2023, about 1 year ago
Updated 23 October 2023, about 1 year ago

Problem/Motivation

In a project, I've often had to pull specific channels through the command line. Unfortunately, there is no way to pull only a specific list of channels. You can pull all channels at once using the entity-share-client:pull-all [remote_website_id] [config_import_id] command, or you can pull all channels except for a given list using the entity-share-client:pull-all [remote_website_id] [config_import_id] --ignore-channel-ids=[comma-separated_list_of_channel_ids] command.
However, the latter solution is not very useful when you have many channels (because you have to write each channel_id one by one in the command line).

<!--break-->

And that's what happens to me when I use this module.

Proposed resolution

I propose adding a new command that we can call entity-share-client:pull-channels, which takes as parameters the remote_website_id, the import_config_id, and a list of comma-separated channel ids. It will run in a similar way to the "pull-all" command, but instead of having an ignored list of channel ids, we'll have a list of channel ids to import and ignore others.

Something like this:
drush entity-share-client:pull-channels remote_website_id import_config_id channel_1,channel_2,channel_3

Feature request
Status

Needs review

Version

3.0

Component

Entity Share Client

Created by

🇫🇷France NathLL

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

Comments & Activities

Production build 0.71.5 2024