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
- Log in as admin
- Enable layout builder on the article content type and allow per-node customization
- Create a new article in Live
- Create a workspace Test
- Edit the article above's layout and swap a couple of blocks without saving
- Create an admin-2 user and log in
- Switch to Live
- Visit the article layout page
- Discard the changes
- Log back in as admin user and switch back to the Test workspace
- Visit the article layout page
- Observe
Proposed resolution
Introduce a workspace aware shared tempstore in the workspaces module.