-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List rooms improvements #29
Conversation
How did you know that these fields can be It is not clear which rooms are returned. All the rooms that the server know about? Even the ones where the server only has the stripped state because a user was invited to it? If that is the case there are more fields that should be optional. There is not much documentation about it, but looking at the code they seem to be loaded directly from the database, and in the database schemas a lot of those fields can be |
Yes, I encountered multiple rooms on my homeserver having this fields as null.
I'm not sure about which rooms are returned, I woud've guessed it's only rooms on the homeserver.
I haven't looked at the underlying code, but if that's the case maybe we should put everything except for the room id as an option. |
@kilimnik you have to put an empty line between a quote and the next non-quite line, your comment does not render the intended way at least on GH mobile. |
If I join the SQL request, with the PostgreSQL schemas and the JSON constructor. If get this:
So it looks like every field with a string value can be |
I have found these type definitions for the room details endpoint that corroborate my previous comment, given that it is constructed from the same SQL tables: https://github.com/element-hq/synapse/blob/24c4d82aeb1bd5ac15cc0614e243595404fb2009/synapse/storage/databases/main/room.py#L81-L102 |
I added the |
Thanks, could you add an entry to the changelog? It might be a good thing to start using the same sections as in the main ruma crates ("Breaking changes", "Bug fixes", "Improvements") to make the impact of changes clearer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few nits in the changelog
Thanks! |
I noticed that the fields,
join_rules
,guest_access
andhistory_visibility
can be null. So I wrapped them in an option.The
join_rules
deserialization did not work with the old type.I also added the missing
room_type
field.