Patch #36416

Cleanup more dependent objects on project delete

Added by Holger Just 17 days ago. Updated 3 days ago.

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

0%

Category:Database
Target version:Candidate for next major release

Description

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

History

#1 Updated by Go MAEDA 17 days ago

  • Target version set to Candidate for next major release

#2 Updated by Holger Just 3 days ago

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

#3 Updated by Holger Just 3 days ago

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

Also available in: Atom PDF