Missing update hooks in 1.8

Created on 1 July 2024, 5 months ago
Updated 2 August 2024, 4 months ago

Problem/Motivation

After applying the 1.8 release of CivicTheme and running updates, the configuration was not automatically updated for:

1. The enabling of the 3-column layout and and disabling of the single column layouts in the allowed layouts for the Page content type.
2. Switch to 3-column layout for Page content type
3. Update to all blocks residing in the `sidebar` region to use `sidebar_top_left` region.

Steps to reproduce

1. Install CT 1.8 on existing CT site.
2. Run updates
3. Observe that the pages look more narrow.
4. Observe that side navigation block has disappeared.
5. Go to view mode of the Page content type and observe that "3 column" layout is not enabled
6. Go to view mode of the Page content type and observe that "3 column" layout is not used

Proposed resolution

Create 2 update hooks to address the issues above. Note that for the layout switch, the update hook should update to the new layout ONLY if the original layout was not changed (the block in the active config are the same as in the CT 1.7 config); if they have changed - skip the update and notify the user.

Manual workaround

1. Install CT 1.8
2. Run updates
3. Export configuration
4. Assess the config yaml files and update the side navigation (and any other blocks) to use `sidebar_top_left` region. Also, revert the status of this block to be `true`.
5. Copy `civictheme/config/install/core.entity_view_display.node.civictheme_page.default.yml` to your active configuration
6. Run configuration import
7. Run configuration export again
8. Observe that the site looks correct now

🐛 Bug report
Status

Fixed

Version

1.8

Component

Code

Created by

🇦🇺Australia alex.skrypnyk Melbourne

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

Comments & Activities

Production build 0.71.5 2024