allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject allura git commit: fixup! [#8177] Exclude deleted tickets from bin counts
Date Wed, 24 Jan 2018 21:18:41 GMT
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 <ktaylor@slashdotmedia.com>
Authored: Wed Jan 24 20:22:26 2018 +0000
Committer: Kenton Taylor <ktaylor@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)


Mime
View raw message