Workspace association data is not updated when an entity is deleted

Created on 27 May 2021, over 3 years ago
Updated 23 January 2023, over 1 year ago

Problem/Motivation

When an entity tracked by a workspace is deleted, the workspace association table is not updated to remove the association data for that entity.

Steps to reproduce

Create a node inside a workspace and delete it. The workspace_association still tracks the deleted entity.

Proposed resolution

Implement hook_entity_delete() and hook_entity_revision_delete() to maintain data integrity in the workspace_association table.

Remaining tasks

Review.

User interface changes

Nope.

API changes

A new optional argument is added to \Drupal\workspaces\WorkspaceAssociationInterface::deleteAssociations().

Data model changes

Nope.

Release notes snippet

TBD.

🐛 Bug report
Status

Fixed

Version

10.1

Component
Workspaces 

Last updated 1 day ago

No maintainer
Created by

🇷🇴Romania amateescu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom catch

    @adriancid, it's there, Drupal.org posting back is/was broken:

    git log --pretty=oneline | grep 3216107
    b13dae8bd0d08a48af2aef2c7a55d35147da11af Issue #3216107 by amateescu, adriancid, alexpott, Fabianx: Workspace association data is not updated when an entity is deleted
    
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024