drush_cmi_tools icon indicating copy to clipboard operation
drush_cmi_tools copied to clipboard

Support the ignore of config collections

Open jnpwebdeveloper opened this issue 7 years ago • 3 comments

We have a situation where we wish to ignore entire collections. An example would be having languages turned on but we don't necessarily want this all to be exported to config. Currently there is now way to ignore those with the file_scan_directory method using patterns. So I have added an additional option to specify a collection to ignore.

Example:

ignore_collection:
  - language.sw

Would ignore and remove the Swedish language collection and also remove the collection root directory if empty.

Have also fixed a few formatting issues where there were two spaces instead of one after the equals sign.

jnpwebdeveloper avatar Aug 01 '17 08:08 jnpwebdeveloper

Having this would be great thanks! We also want to ignore a whole language collection. Is there a current workaround to do this? If not, it would be very important to get this functionality in.

yareckon avatar Oct 20 '17 08:10 yareckon

Hey, I'm not familiar with collections - can you give me some more background/link to some docs?

Thanks

larowlan avatar Oct 21 '17 05:10 larowlan

Hi @larowlan, been a while but I'll try to explain it as best as I can. Basically for languages for example you can have multiple variations of the same variables for languages. In that instance I was referring to, we had for instance one code base for multiple languages. We didn't want to commit each language to the repository so we wanted to ignore entire collections. E.g. sw for the swedish language. Here is perhaps a better description as to its purpose: https://www.drupal.org/node/2268523

jnpwebdeveloper avatar Jan 03 '18 14:01 jnpwebdeveloper