Problem/Motivation
To facilitate keeping the distribution lightweight and because soon the Lightning Contrib modules will be EOL we need to remove Lightning Layout in a way that doesn't break an upgrade path and documents the modules removed in case site builders will want to manually add them to their composer.json file
On a default WxT installation the following components are enabled.
Lightning Layout (lightning_layout) Enabled 8.x-2.11
-> Landing page (lightning_landing_page) Enabled 8.x-2.11
-> Banner block (lightning_banner_block) Disabled 8.x-2.11
-> Map block (lightning_map_block) Disabled 8.x-2.11
Lighting Workflow module itself has the following module dependencies.
- drupal:block
- drupal:layout_builder
- drupal:options
- layout_library:layout_library
- layout_builder_restrictions:layout_builder_restrictions
- layout_builder_styles:layout_builder_styles
- lightning_core:lightning_core
Lightning Layout composer.json has the following module dependencies.
Importantly Panelizer directs most of its code to Layout Builder now although we do still need the bulk of the Layout modules.
"drupal/bg_image_formatter": "^1.10",
"drupal/ctools": "^3.6",
"drupal/entity_block": "^1.0",
"drupal/entity_browser_block": "^1.0",
"drupal/layout_builder_restrictions": "^2.7",
"drupal/layout_builder_st": "^1.0-alpha2",
"drupal/layout_builder_styles": "^1.0",
"drupal/layout_library": "^1.0-beta1",
"drupal/lightning_core": "4.* || 5.*",
"drupal/panelizer": "^4.1 || ^5.0",
"drupal/panels": "4.6 || 4.x-dev",
"drupal/simple_gmap": "^3.0"
Therefore the following entries are the ones that are removed from the distribution now.
"drupal/bg_image_formatter": "^1.10",
"drupal/panelizer": "^4.1 || ^5.0",
"drupal/simple_gmap": "^3.0"
Steps to reproduce
N/A
Proposed resolution
Uninstall the Lightning Layout module while maintaining an upgrade path.
Remaining tasks
N/A
User interface changes
Lightning Layout will no longer be presented in the admin menu.
API changes
N/A
Data model changes
Largely wxt_ext_layout and wxt_ext_landing_page which already exist now take over the configuration objects provided by lightning_layout and lightning_landing_page. The existing config_rewrites for the configuration objects have been updated and moved over to the base configuration under config/install.
Comments
Comment #2
sylus CreditAttribution: sylus commentedComment #4
sylus CreditAttribution: sylus commentedComment #5
smulvih2I tested upgrading a site on the 4.3.0 branch to 4.3.x-dev. I can confirm the update hook ran as intended.
The following modules were uninstalled:
The following module was installed properly:
On a fresh install of WxT 4.3.x-dev, the following config is confirmed working:
Issues/Improvements:
Great work @sylus, this really trims down the distro!
Comment #6
sylus CreditAttribution: sylus commentedThanks @smulvih!!!
So for the config/dynamic it was logic from lightning_workflow that I didn't want to just delete in case some people relied on it.
The logic that kicks it off and installs it is on a content type update:
Comment #7
sylus CreditAttribution: sylus commentedThanks for catching the second issue, this should be corrected by the following commit.
https://github.com/drupalwxt/wxt/commit/b3ca85caaa811313759767697a3b55e7...
The lightning_core logic wasn't firing since we don't have lightning_workflow anymore only wxt_ext_workflow.
The next release we will focus on the final two modules lightning_core and lightning_media for removal.
Almost there!
Thanks for the review!
Comment #8
smulvih2The editorial setting for basic page works now, thanks!
Comment #9
smulvih2Moving comment to related ticket.