From cb7bc1b7b929d744d743167bf15c3f1518180bce Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Mon, 10 Apr 2023 18:42:27 +0000 Subject: [PATCH] report_error: Remove reference to old non-existant path. --- zerver/middleware.py | 1 - zerver/tests/test_middleware.py | 1 - 2 files changed, 2 deletions(-) diff --git a/zerver/middleware.py b/zerver/middleware.py index d6634b8331..58d199e35b 100644 --- a/zerver/middleware.py +++ b/zerver/middleware.py @@ -115,7 +115,6 @@ def is_slow_query(time_delta: float, path: str) -> bool: is_exempt = path in [ "/activity", "/json/report/error", - "/api/v1/deployments/report_error", ] or path.startswith(("/realm_activity/", "/user_activity/")) if is_exempt: return time_delta >= 5 diff --git a/zerver/tests/test_middleware.py b/zerver/tests/test_middleware.py index 832a11d9a8..21a37adb65 100644 --- a/zerver/tests/test_middleware.py +++ b/zerver/tests/test_middleware.py @@ -32,7 +32,6 @@ class SlowQueryTest(ZulipTestCase): self.assertTrue(is_slow_query(5.1, "/activity")) self.assertFalse(is_slow_query(2, "/activity")) self.assertFalse(is_slow_query(2, "/json/report/error")) - self.assertFalse(is_slow_query(2, "/api/v1/deployments/report_error")) self.assertFalse(is_slow_query(2, "/realm_activity/whatever")) self.assertFalse(is_slow_query(2, "/user_activity/whatever")) self.assertFalse(is_slow_query(9, "/accounts/webathena_kerberos_login/"))