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/24 21:18:41 UTC

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

Repository: allura
Updated Branches:
  refs/heads/kt/8177 40f807156 -> e4d31d7d2


fixup! [#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/e4d31d7d
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/e4d31d7d
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/e4d31d7d

Branch: refs/heads/kt/8177
Commit: e4d31d7d2c3782280e2cbb1f767b3eaf71de9b1f
Parents: 40f8071
Author: Kenton Taylor <kt...@slashdotmedia.com>
Authored: Wed Jan 24 20:22:26 2018 +0000
Committer: Kenton Taylor <kt...@slashdotmedia.com>
Committed: Wed Jan 24 20:22:26 2018 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/tests/unit/test_globals_model.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/e4d31d7d/ForgeTracker/forgetracker/tests/unit/test_globals_model.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tests/unit/test_globals_model.py b/ForgeTracker/forgetracker/tests/unit/test_globals_model.py
index e3945dc..700a222 100644
--- a/ForgeTracker/forgetracker/tests/unit/test_globals_model.py
+++ b/ForgeTracker/forgetracker/tests/unit/test_globals_model.py
@@ -114,7 +114,7 @@ class TestGlobalsModel(TrackerTestWithModel):
         gbl.update_bin_counts()
         assert mock_bin.query.find.called
         mock_search.assert_called_with(
-            forgetracker.model.Ticket, 'bar', rows=0, short_timeout=False)
+            forgetracker.model.Ticket, 'bar', rows=0, short_timeout=False, fq=['-deleted_b:true'])
         assert_equal(gbl._bin_counts_data, [{'summary': 'foo', 'hits': 5}])
         assert_equal(gbl._bin_counts_expire, now + timedelta(minutes=60))
         assert_equal(gbl._bin_counts_invalidated, None)