synapse-admin icon indicating copy to clipboard operation
synapse-admin copied to clipboard

Discrepancy of selectable filters between rooms and rooms_directory

Open tgurr opened this issue 3 years ago • 2 comments

rooms and rooms_directory have different selectable filters, while it would be handy to filter for e.g. theme/thema and probably others on rooms as well since rooms_directory only gives a partly list to filter on. filter02 filter01

tgurr avatar Feb 21 '22 11:02 tgurr

The reason is, that this are different APIs with different return values. The room directory is the public API: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3publicrooms And the room list is an admin API: https://matrix-org.github.io/synapse/latest/admin_api/rooms.html#list-room-api

The server admin gets mor information than a normal user.

dklimpel avatar Feb 21 '22 11:02 dklimpel

The reason is, that this are different APIs with different return values. The room directory is the public API: https://spec.matrix.org/v1.2/client-server-api/#get_matrixclientv3publicrooms And the room list is an admin API: https://matrix-org.github.io/synapse/latest/admin_api/rooms.html#list-room-api

The server admin gets mor information than a normal user.

Thanks, that explains why it's not possible to replicate 1:1 between the two, but room_id, topic and canonical_alias filters from rooms_directory could still be added to rooms right? Might change the issue topic for the request to rather "add missing selectable filters present in rooms_directory to rooms" then.

tgurr avatar Feb 21 '22 12:02 tgurr