Patch #36416

Cleanup more dependent objects on project delete

Added by Holger Just 14 days ago. Updated about 12 hours ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:Candidate for next major release


On project deletion, there are currently some rows in the database which are not correctly destroyed and thus become orphaned.

With this patch, we will destroy overridden time entry activities (and all of their children) of a project on project destroy.

We now also destroy dependent objects of stored queries for a project on destroy. This will cleanup rows from the habtm join table queries_roles which were also orphaned before.

The attached patch is against current trunk but should also apply to older versions. When we apply this, we may also want to add a migration to cleanup previously orphaned rows in the database.

0001-Cleanup-more-dependent-objects-on-project-delete.patch Magnifier (4.02 KB) Holger Just, 2022-01-25 18:53


#1 Updated by Go MAEDA 14 days ago

  • Target version set to Candidate for next major release

#2 Updated by Holger Just about 12 hours ago

Attached is an updated patch which included a migration to delete potentially orphaned database rows.

#3 Updated by Holger Just about 12 hours ago

  • File deleted (0001-Cleanup-more-dependent-objects-on-project-delete.patch)

Also available in: Atom PDF