Opened 2 years ago
Closed 2 years ago
#2918 closed Defect (fixed)
How much data to delete when deleting an entity.
| Reported by: | brettp | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Elgg 1.8.0 |
| Component: | Core | Version: | 1.7 |
| Severity: | minor | Keywords: | |
| Cc: | brett@… | Difficulty: | easy |
Description
When you delete an entity, the annotations/metadata on that entity (table.entity_guid = $entity->guid) are deleted, but not the annotations/metadata that entity created for other entities (table.owner_guid = $entity->guid).
I don't see a reason to keep that information since it can't be resolved to an entity and would like to fix it in 1.8. Does anyone have use cases where this might break something?
Change History (2)
comment:1 Changed 2 years ago by brettp
comment:2 Changed 2 years ago by brettp
- Resolution set to fixed
- Status changed from new to closed
(In [svn:8222]) Fixes #2918. Moved annotation/metadata delete functions from ElggUser to ElggEntity. When deleted, entities now correctly delete metadata they own as well as metadata on them. Removed uses of deprecated functions.

This is actually a bug in ElggUser with access controls. All metadata/annotations should be removed, so I'm fixing it.