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

commit 2c7a5828a98a6db016deef1b36fcf22993ed887b
Author: Dillon Walls <[email protected]>
AuthorDate: Tue Jul 18 22:39:38 2023 +0000

    [#8516] Artifact immediately flushes itself and removes from ming cache 
upon deletion
---
 Allura/allura/model/artifact.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Allura/allura/model/artifact.py b/Allura/allura/model/artifact.py
index cf6c94f64..2c0830a43 100644
--- a/Allura/allura/model/artifact.py
+++ b/Allura/allura/model/artifact.py
@@ -470,6 +470,8 @@ class Artifact(MappedClass, SearchIndexable):
         """
         ArtifactReference.query.remove(dict(_id=self.index_id()))
         super().delete()
+        session(self).flush(self)
+        session(self).imap.expunge(self)
 
     def get_mail_footer(self, notification, toaddr):
         allow_email_posting = self.app.config.options.get('AllowEmailPosting', 
True)

Reply via email to