Problem/Motivation

When creating a component override using this module in combination with the wse_config module (submodule of wse) inside a workspace, the overrides are currently leaking into other workspaces and into the live version of the site.

Steps to reproduce

On Vanilla Drupal 9

  1. Enable the wse_config and component_library modules
  2. Switch to the stage workspace
  3. Create an override for the page title template
  4. Switch to the live workspace

Result: The change done in the stage workspace is leaking into the live version of the site.

Proposed resolution

In Drupal\component_library\Twig\Loader::getCacheKey() detect a possibly active workspace and suffix the returned cache key with the workspace id.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

s_leu created an issue. See original summary.

s_leu’s picture

Issue summary: View changes

s_leu’s picture

Status: Active » Needs review
tim bozeman’s picture

Status: Needs review » Fixed

Nice!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.