-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Change so that update group room visibility isn't an upsert #2651
Conversation
"""Update room config in group | ||
""" | ||
PATH = "/groups/(?P<group_id>[^/]*)/room/(?P<room_id>[^/]*)" | ||
"/config/(?P<config_key>[^/]*)$" |
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.
Is this supposed to be unindented? I'm guessing yes, I just haven't seen this before
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.
Woops. I need to add brackets...
PATH = "/groups/(?P<group_id>[^/]*)/room/(?P<room_id>[^/]*)" | ||
"/config/(?P<config_key>[^/]*)$" | ||
PATH = ( | ||
"/groups/(?P<group_id>[^/]*)/room/(?P<room_id>[^/]*)" |
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.
no comma?...
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.
oo spooky python string concatenation
FTR, the plan is to do a global s/visibility/m.visibility/ to namespace the settings, but I'll do that as a separate PR |
This adds an API of the form:
PUT /groups/:group_id/room/:room_id/config/:config_key
, where currentlyconfig_key
can only bevisibility
.The natural API shape here would still be to allow
PUT /groups/:group_id/room/:room_id
as an upsert, but that isn't implemented.(This PR also fixes the fact that add room doesn't work over federation, hopefully)