Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Configuration Revert currently supports reverting a single configuration entity.
There may be use cases for bulk reversion. Examples:
- After experimentation, restore a module's configuration to its default state.
- Restore a Features-type module's configuration to its default state to stay on configuration upgrade path.
- When browsing a list of overridden configuration, select specific items to revert all at once.
Mass reversion might include:
- Revert all of a list of configuration entities/items.
- Revert all configuration entities of a given type.
- Revert all configuration entities provided by a given extension.
- Revert all configuration entities of a given type provided by a given extension.
Proposed resolution
Such methods could be added to a service providing reversion methods (see #2408909: Pull configuration item reversion into a separate class/service).
Possible UI changes:
- Add checkboxes to current reports to select multiple items to revert.
- Add buttons or similar elements to reports to trigger mass operations, like:
- Add all missing configuration items
- Revert all changed configuration items
Additional bulk operations: Export multiple -- see #3038494: Add bulk export ability
Comments
Comment #1
jhodgdonThis module doesn't support *any* bulk operations, and I don't think it is going to.
But I'll leave this open.
Comment #2
jhodgdonComment #3
jhodgdonAlso, as a note, reverting config using this module doesn't really get a module to its default state, because a lot of Core modules do things in their installation process that are not reflected in their config/install or config/optional configuration (which you will see as "changed" or "added" items on the reports).
So I think the only use case that makes sense here is to have checkboxes on the report sections and bulk operations.
Comment #4
jhodgdonComment #5
jhodgdonRelated proposal: ability to select and export config in a zip file.
Comment #6
PasqualleThere is a bulk import issue also #2943298: Add way to mass import all new configuration objects via Drush or UI
Comment #7
RoSk0Cross-linking