Active
Project:
Configuration Update Manager
Version:
8.x-1.x-dev
Component:
Drush commands
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2018 at 16:51 UTC
Updated:
13 Jul 2022 at 15:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jhodgdonI don't think this is a bug. The reports in the UI (and in Drush) are separated out into different sections.
There is config-added-report (cra), config-different-report (crd), config-inactive-report (cfi), and config-missing-report (cfm). They do not overlap, and that is by design. And similarly, there are non-overlapping commands to import/revert config: config-revert (cfr) for items that already exist, and config-import-missing (cfi) for missing items.
I guess there is not a config-import-all-missing or config-import-missing-multiple that would do all missing items from a module... we could convert this into a feature request and add that command, if that would be helpful? But I don't think it's a good idea, especially since the module has been out for quite a while now, to change the behavior of the revert command so that it also imports missing items.
Thoughts?
Comment #3
dsnopekThat makes sense! Re-titled and made into a Feature request.
It would also be nice to have a command that does both revert and import missing (which is what
drush features-revertdoes) so I don't have to run two commands to be sure the module's config is in its install state.Comment #4
nedjoBecause of complex dependency issues, so far we've intentionally steered clear of trying to handle sets of config items.
Comment #5
jhodgdonGood idea to make a "restore and import multiple" command too. Maybe use the word "restore" or something like that in the command name, to make it distinct from both revert and import? I can't think right now what it should be called... config-restore-multiple?
Anyway, consider your feature(s) requested. The commands shouldn't be too hard to write...
Comment #6
jhodgdonwell, we do have the revert-multiple command already...
Comment #7
nedjowhich just shows I'm behind the times ;)
Comment #8
bserem commented+1 for this, ideally it being able to solve import order dependencies.
At the moment it is possible to import all missing configuration from the command line with:
drush crm profile my_custom_profile | xargs -L1 drush cfiI also believe that it would be handy to add a "Import all from Source" button/operation, so that we don't have to do dozens of clicks to import config changes. Something like this:

In the above picture I need to go through 4 operations, all of them requiring a verification and all of will not come back to the page with the operations. Thus importing becomes a rather nerve-breaking task :)
Comment #9
nevergone@bserem
drush crm profile my_install_profile | sed 's/- //g' | xargs -L1 drush cfiComment #10
bserem commentedI'll check this!