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
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:
- wse-3485818
changes, plain diff MR !82
- 3485818-rebuild-workspace-menu
compare
Comments
Comment #4
paranojik commentedProposed solution implemented and ready for review.
Comment #5
paranojik commentedComment #6
plachComment #7
paranojik commentedComment #8
plachComment #9
paranojik commentedComment #10
plachLooks good and works well, thanks!
Comment #15
amateescu commentedMerged into 2.0.x and cherry-picked to 1.0.x, thanks!
Comment #16
amateescu commented