Config import fails (via Drush) to uninstall themes in correct order

Created on 2 November 2023, 10 months ago

Problem/Motivation

Uninstalling multiple themes in one go via configuration deployment can result in the process failing.

Steps to reproduce

Have multiple themes installed, including one (theme two) which lists the other (theme one) as a base theme.
Uninstall both Theme One and Theme Two.
Export the configuration.
Deploy the configuration to another copy of the site that was identical to the original prior to the steps above being performed.
Attempt to import the configuration using drush (drush config:import).

Should see this:
* The configuration system determines the order to uninstall the themes and uninstalls them in the appropriate order.

What you see is:
* The following error is displayed:

The base theme theme_one cannot be uninstalled, because theme theme_two depends on it.

Proposed resolution

Ensure that when multiple themes are uninstalled they are uninstalled in the appropriate order based upon the "base theme" setting of each one.

Remaining tasks

Work out the appropriate fix.

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
ConfigurationΒ  β†’

Last updated 1 day ago

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024