Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zilencer: Migrate to typed_endpoint.
Kenneth Rodrigues4e63daf2ce3a
diff --git a/zilencer/views.py b/zilencer/views.pyindex d96f15b1277..09fbe693ab5 100644--- a/zilencer/views.py+++ b/zilencer/views.py@@ -64,7 +64,7 @@ from zerver.lib.remote_server import (RealmCountDataForAnalytics,RealmDataForAnalytics,)-from zerver.lib.request import RequestNotes, has_request_variables+from zerver.lib.request import RequestNotesfrom zerver.lib.response import json_successfrom zerver.lib.send_email import FromAddressfrom zerver.lib.timestamp import timestamp_to_datetime@@ -73,6 +73,7 @@ from zerver.lib.typed_endpoint import (JsonBodyPayload,RequiredStringConstraint,typed_endpoint,+ typed_endpoint_without_parameters,)from zerver.lib.typed_endpoint_validators import check_string_fixed_lengthfrom zerver.lib.types import RemoteRealmDictValue@@ -113,7 +114,7 @@ def validate_bouncer_token_request(token: str, kind: int) -> None:@csrf_exempt@require_post-@has_request_variables+@typed_endpoint_without_parametersdef deactivate_remote_server(request: HttpRequest,remote_server: RemoteZulipServer,@@ -1391,7 +1392,7 @@ def get_last_id_from_server(server: RemoteZulipServer, model: Any) -> int:return 0-@has_request_variables+@typed_endpoint_without_parametersdef remote_server_check_analytics(request: HttpRequest, server: RemoteZulipServer) -> HttpResponse:result = {"last_realm_count_id": get_last_id_from_server(server, RemoteRealmCount),