- Issue created by @NathLL
- last update
about 1 year ago 40 pass, 4 fail - @nathll opened merge request.
- Status changed to Needs review
about 1 year ago 3:07pm 19 October 2023 - Issue was unassigned.
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).
And that's what happens to me when I use this module.
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