Prevent loss of layout changes when breaking lock in different workspace

Created on 19 December 2024, 4 months ago

Problem/Motivation

Layout builder locks are not workspace-safe: by breaking them in Live you may delete unsaved layout changes performed inside a workspace.

Steps to reproduce

  1. Log in as admin
  2. Enable layout builder on the article content type and allow per-node customization
  3. Create a new article in Live
  4. Create a workspace Test
  5. Edit the article above's layout and swap a couple of blocks without saving
  6. Create an admin-2 user and log in
  7. Switch to Live
  8. Visit the article layout page
  9. Discard the changes
  10. Log back in as admin user and switch back to the Test workspace
  11. Visit the article layout page
  12. Observe

Proposed resolution

Introduce a workspace aware shared tempstore in the workspaces module.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.1 🔥

Component

workspaces.module

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024