This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new 712f9f0f1 remove ticket history records when uninstalling a ticket tool
712f9f0f1 is described below

commit 712f9f0f115e77c74288b787980dd32a5eda40c4
Author: Dave Brondsema <[email protected]>
AuthorDate: Thu Sep 7 20:31:42 2023 +0000

    remove ticket history records when uninstalling a ticket tool
---
 ForgeTracker/forgetracker/tracker_main.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ForgeTracker/forgetracker/tracker_main.py 
b/ForgeTracker/forgetracker/tracker_main.py
index 367de3402..4047b7f88 100644
--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -485,6 +485,7 @@ class ForgeTrackerApp(Application):
         app_config_id = {'app_config_id': c.app.config._id}
         TM.TicketAttachment.query.remove(app_config_id)
         TM.Ticket.query.remove(app_config_id)
+        TM.Ticket.__mongometa__.history_class.query.remove(app_config_id)
         TM.Bin.query.remove(app_config_id)
         TM.Globals.query.remove(app_config_id)
         super().uninstall(project)

Reply via email to