Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
workspaces.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2024 at 12:14 UTC
Updated:
25 Feb 2025 at 13:24 UTC
Jump to comment: Most recent
Comments
Comment #2
quietone commentedChanges are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies.
Comment #4
s_leu commentedComment #5
amateescu commentedI don't think we should take the route of providing a generic workspace-aware temp store implementation, we have #3026957: Provide a generic TempStoreIdentifierInterface that any object can use to better identify itself for that, so let's keep this issue focused on the specific problem we have: LB's temp store needs to be workspace-aware.
Let's decorate the
layout_builder.tempstore_repositoryservice with a class that extendsLayoutTempstoreRepository, and overrides itsgetKey()method to append the current workspace ID. Then test coverage needs to be added in\Drupal\Tests\workspaces\FunctionalJavascript\WorkspacesLayoutBuilderIntegrationTest.Comment #6
amateescu commentedLooks ready to me!
Comment #8
catchThis is tricky but the solution makes sense. I wondered about whether we could add some kind of 'extra keys' container parameter that layout builder could respect, and workspaces could add to, a bit like required render cache contexts, but that feels like it should be its own issue if at all.
Committed/pushed to 11.x, thanks!