mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
decorator: Rename internal_notify_view.
As noted in the previous commit, this decorator is not just used for "notify" endpoints anymore.
This commit is contained in:
committed by
Tim Abbott
parent
be75736a95
commit
ab683fac29
@@ -7,7 +7,7 @@ from django.http import HttpRequest, HttpResponse
|
||||
from django.utils.translation import gettext as _
|
||||
from typing_extensions import ParamSpec
|
||||
|
||||
from zerver.decorator import internal_notify_view, process_client
|
||||
from zerver.decorator import internal_api_view, process_client
|
||||
from zerver.lib.exceptions import JsonableError
|
||||
from zerver.lib.queue import get_queue_client
|
||||
from zerver.lib.request import REQ, RequestNotes, has_request_variables
|
||||
@@ -38,7 +38,7 @@ def in_tornado_thread(f: Callable[P, T]) -> Callable[P, T]:
|
||||
return async_to_sync(wrapped)
|
||||
|
||||
|
||||
@internal_notify_view(True)
|
||||
@internal_api_view(True)
|
||||
@has_request_variables
|
||||
def notify(
|
||||
request: HttpRequest, data: Mapping[str, Any] = REQ(json_validator=check_dict([]))
|
||||
@@ -79,7 +79,7 @@ def cleanup_event_queue(
|
||||
return json_success(request)
|
||||
|
||||
|
||||
@internal_notify_view(True)
|
||||
@internal_api_view(True)
|
||||
@has_request_variables
|
||||
def get_events_internal(
|
||||
request: HttpRequest, user_profile_id: int = REQ(json_validator=check_int)
|
||||
|
||||
Reference in New Issue
Block a user