Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Conversation

@erikjohnston
Copy link
Member

This adds an API of the form: PUT /groups/:group_id/room/:room_id/config/:config_key, where currently config_key can only be visibility.

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)

"""Update room config in group
"""
PATH = "/groups/(?P<group_id>[^/]*)/room/(?P<room_id>[^/]*)"
"/config/(?P<config_key>[^/]*)$"
Copy link
Contributor

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

Copy link
Member Author

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>[^/]*)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no comma?...

Copy link
Contributor

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

@erikjohnston erikjohnston assigned richvdh and unassigned erikjohnston Nov 9, 2017
@erikjohnston
Copy link
Member Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants