-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Admins should be able to list all rooms on the server #6424
Comments
@neilisfragile -- This is probably my #1 request for Synapse admin API features right now. |
Since calculating the name for each room isn't trivial, and thus the query may take a long time on a server with many, many rooms, I think it best to make this endpoint support pagination. Here's a quick design I threw together: Request:
Response:
If offset + limit spills over the end of the room list (e.g. offset 0 + limit 50 for 45 total rooms) only 45 rooms will be returned. |
Thanks @anoadragon453. This looks good and would definitely be better than nothing. However, for this to be really useful, is it possible to do any sort of server-side sorting of the rooms, e.g. by name or creation date? Also, is it possible to search / filter the results? E.g:
|
@rxl881 Heads up that this is how this API has shaped up: https://github.com/matrix-org/synapse/blob/ed5457c28b0a0e17398c403f0ecef26f8678f3e0/docs/admin_api/rooms.md Let me know what you think. |
@anoadragon453 -- That looks absolutely perfect. Thanks!!! |
This is done in #6720 |
Description:
It would be incredibly useful for server admins to be able to list all rooms on the server (together with the room names / aliases).
This could be used together with media store APIs etc. to list a breakdown of resource usage per room. It could also be used along with the room shutdown and room purge APIs etc.
It would be good to have this asap., as all of these features are being requested by users.
The text was updated successfully, but these errors were encountered: