Deleting a node should delete its children #58013

Open
opened 2018-11-23 12:08:00 +01:00 by Sybren A. Stüvel · 1 comment

For example this asset on Spring is shown in search results because it has _deleted: false. However, visiting that link still shows "Not Found" because its parent group node was deleted.

Probably best to just delete child nodes when a parent is deleted. This would thus also include comments on an asset, notifications, etc.

It would be nice to have a visualisation of what'll be deleted when you delete a node.

We probably also want a CLI command to delete children of deleted nodes, so that we can clean up the current database.

For example [this asset on Spring](https:*cloud.blender.org/p/spring/5bf27aed527ba57cb3c48719) is shown in search results because [it has `_deleted: false`](https:*cloud.blender.org/api/nodes/5bf27aed527ba57cb3c48719). However, visiting that link still shows "Not Found" because [its parent group node](https://cloud.blender.org/api/nodes/5bf27ae4527ba57cb3c48717) was deleted. Probably best to just delete child nodes when a parent is deleted. This would thus also include comments on an asset, notifications, etc. It would be nice to have a visualisation of what'll be deleted when you delete a node. We probably also want a CLI command to delete children of deleted nodes, so that we can clean up the current database.

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: archive/pillar#58013
No description provided.