Problem/Motivation

Workspace menu trees going out of sync is problematic as it’s confusing for content editors. Menu trees should be rebuilt automatically, given that it does seem a costly operation.

Proposed resolution

Add a wse_menu_tree_needs_rebuild key/value entry, which should be an array keyed by workspace ID, and with TRUE/FALSE values. Whenever the menu tree changes in Live, we need to update that k/v entry and set it to TRUE for all workspaces. Then, in a request subscriber, after checking that a workspace is active, check whether we need to rebuild the menu tree for that workspace by looking at the k/v entry, and perform the rebuild if needed.

Issue fork wse-3485818

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

paranojik created an issue. See original summary.

paranojik changed the visibility of the branch 3485818-rebuild-workspace-menu to hidden.

paranojik’s picture

Proposed solution implemented and ready for review.

paranojik’s picture

Status: Active » Needs review
plach’s picture

Status: Needs review » Needs work
paranojik’s picture

Status: Needs work » Needs review
plach’s picture

Status: Needs review » Needs work
paranojik’s picture

Status: Needs work » Needs review
plach’s picture

Status: Needs review » Reviewed & tested by the community

Looks good and works well, thanks!

amateescu changed the visibility of the branch wse-3485818 to hidden.

amateescu changed the visibility of the branch wse-3485818 to active.

amateescu’s picture

Status: Reviewed & tested by the community » Fixed

Merged into 2.0.x and cherry-picked to 1.0.x, thanks!

amateescu’s picture

Status: Fixed » Closed (fixed)

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