Awesome-Technologies / synapse-admin

Admin console for synapse Matrix homeserver
https://awesome-technologies.github.io/synapse-admin/
Apache License 2.0
849 stars 125 forks source link

Discrepancy of selectable filters between rooms and rooms_directory #251

Open tgurr opened 2 years ago

tgurr commented 2 years ago

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

dklimpel commented 2 years ago

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.

tgurr commented 2 years ago

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.