Sub workspace does not clear

Created on 4 April 2024, 9 months ago
Updated 20 September 2024, 3 months ago

Problem/Motivation

When changes are made in a sub-workspace and pushed to the live workspace, the sub-workspace does not clear old changes as expected. This is due to the WorkspaceAssociation::onPostPublish() method not deleting the associations of sub-workspaces when published to the live workspace. The issue persists as old changes continue to appear after merging and publishing.

Steps to reproduce

1. Set up Drupal with the Workspaces module enabled.
2. Create a parent workspace and multiple sub-workspaces.
3. Make changes in a sub-workspace.
4. Merge the sub-workspace changes into the Stage workspace.
5. Publish changes from the Stage workspace to the Live workspace.
6. Verify that the sub-workspace has been cleared and old changes are no longer present.

Proposed resolution

To resolve this issue, we need to implement a cleanup logic to ensure that the associations between sub-workspaces and their changes are properly removed when changes are published to the live workspace. This will prevent old changes from persisting and ensure that the workspace accurately reflects the latest changes.

🐛 Bug report
Status

Needs review

Version

11.0 🔥

Component
Workspaces 

Last updated 4 days ago

No maintainer
Created by

🇺🇸United States michelle Wisconsin, USA

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024