You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by ke...@apache.org on 2018/01/23 18:14:53 UTC

allura git commit: [#8177] Exclude deleted tickets from bin counts

Repository: allura
Updated Branches:
  refs/heads/kt/8177 [created] 40f807156


[#8177] Exclude deleted tickets from bin counts


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/40f80715
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/40f80715
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/40f80715

Branch: refs/heads/kt/8177
Commit: 40f807156816eb42f41e7545ecb38374ec9f4334
Parents: 318a6d6
Author: Kenton Taylor <kt...@slashdotmedia.com>
Authored: Tue Jan 23 18:07:45 2018 +0000
Committer: Kenton Taylor <kt...@slashdotmedia.com>
Committed: Tue Jan 23 18:07:45 2018 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/model/ticket.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/40f80715/ForgeTracker/forgetracker/model/ticket.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/model/ticket.py b/ForgeTracker/forgetracker/model/ticket.py
index 990e8d7..8f64ed1 100644
--- a/ForgeTracker/forgetracker/model/ticket.py
+++ b/ForgeTracker/forgetracker/model/ticket.py
@@ -194,7 +194,7 @@ class Globals(MappedClass):
                 # skip queries with $USER variable, hits will be inconsistent
                 # for them
                 continue
-            r = search_artifact(Ticket, b.terms, rows=0, short_timeout=False)
+            r = search_artifact(Ticket, b.terms, rows=0, short_timeout=False, fq=['-deleted_b:true'])
             hits = r is not None and r.hits or 0
             self._bin_counts_data.append(dict(summary=b.summary, hits=hits))
         self._bin_counts_expire = \