Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Due to core #1890784: Refactor configuration import and sync functions config-import is broken.
Attached patch tries to fix this but drush config-import
ends with a exception
WD config_import: Drupal\Core\Config\StorageException: Failed to write configuration file: sites/site-x/files/config_hash/active/image.style.medium.yml in Drupal\Core\Config\FileStorage->write()
which is not related to this patch but more to
- #1908440: Relax MTimeProtectedFileStorage permissions for DX, drush integration and world domination
OPEN ISSUES
- needs tests.
Comment | File | Size | Author |
---|---|---|---|
#4 | drush-config-import-2012586-4.patch | 5.56 KB | clemens.tolboom |
drush-config-import.patch | 4.11 KB | clemens.tolboom |
Comments
Comment #1
clemens.tolboomThe patch has some code style fixes too.
Please provide some hints on how to write these tests. Esp. how to work with resources.
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedconfig changed even more recently. i think most of the config commands need a refresh. anyone interested in this should contact folks in #drupal-contribute for help, especially alexpott.
Comment #3
clemens.tolboomJust learned about https://drupal.org/project/config_inspector which as some useful code parts I guess.
Comment #4
clemens.tolboomI've tried to fix both config-import and config-edit.
I'm not sure this is how it should be as it seems config goes in bulk. We now must copy the active to staging then start edit the given item. Most is cloned from
config_admin_import_form_submit
I also documented constants used by (and removed there)
drush_copy_dir()
as my IDE shows these.Needs more work.
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedThanks. Lets continue work at https://github.com/drush-ops/drush/issues/28