Problem/Motivation

When the workspaces module is enabled, edit_plus tempstore keys do not include workspace IDs, causing tempstore entries to collide across workspaces. If a user edits Node 1 in workspace "stage" and another user edits Node 1 in workspace "dev", they see each other's changes because both use the same tempstore key (node.1).

This prevents concurrent editing of the same content across different workspaces and causes data loss when users work in parallel.

Proposed resolution

Add workspace ID and langcode to all edit_plus tempstore keys:

Current format:

  • node.1 (entity type + ID only)

New format:

  • node.1.en.live (non-workspace or live workspace)
  • node.1.en.4da02779-c71c-403b-ac36-8d798c6aff51 (custom workspace)
  • node.1.und.live (non-translatable entity)

Comments

tim bozeman created an issue. See original summary.

  • tim bozeman committed 9b9eeaba on 1.1.x
    [#3557021] feat: Workspaces tempstore support
    
    By: tim bozeman
    
tim bozeman’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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