Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Support pagination API in client_reader worker #5505

Merged
merged 3 commits into from
Jun 21, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5505.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for handling pagination APIs on client reader worker.
7 changes: 7 additions & 0 deletions docs/workers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@ be routed to the same instance::

^/_matrix/client/(r0|unstable)/register$

Pagination requests can also be handled, but all requests with the same path
room must be routed to the same instance. Additionally, care must be taken to
ensure that the purge history admin API is not used while pagination requests
for the room are not in flight::
erikjohnston marked this conversation as resolved.
Show resolved Hide resolved

^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/messages$


``synapse.app.user_dir``
~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 2 additions & 0 deletions synapse/app/client_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
PublicRoomListRestServlet,
RoomEventContextServlet,
RoomMemberListRestServlet,
RoomMessageListRestServlet,
RoomStateRestServlet,
)
from synapse.rest.client.v1.voip import VoipRestServlet
Expand Down Expand Up @@ -109,6 +110,7 @@ def _listen_http(self, listener_config):
JoinedRoomMemberListRestServlet(self).register(resource)
RoomStateRestServlet(self).register(resource)
RoomEventContextServlet(self).register(resource)
RoomMessageListRestServlet(self).register(resource)
RegisterRestServlet(self).register(resource)
LoginRestServlet(self).register(resource)
ThreepidRestServlet(self).register(resource)
Expand Down