Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Add shutdown room API #2291
Conversation
erikjohnston
assigned
NegativeMjark
Jun 19, 2017
erikjohnston
referenced this pull request
in matrix-org/sytest
Jun 19, 2017
Merged
Add tests for room shutdown api #360
erikjohnston
unassigned
NegativeMjark
Jun 19, 2017
erikjohnston
assigned
NegativeMjark
Jun 19, 2017
| @@ -316,6 +327,8 @@ def send(etype, content, **kwargs): | ||
| for invitee in invite_list: | ||
| power_level_content["users"][invitee] = 100 | ||
| + power_level_content.update(power_level_content_override) |
NegativeMjark
Jun 19, 2017
Contributor
Did you mean for the power_level_content to end up in this PR?
NegativeMjark
Jun 19, 2017
Contributor
Ah, I see that you are using the overrides as part of the shutdown API.
The override stuff is trivial enough for me to to review as part of this PR.
It just looked orthogonal to me at first, hence me asking whether you meant to push it as part of the PR :)
|
Do we also need to worry about the calls to send_membership_event? synapse/synapse/handlers/federation.py Line 2065 in 36e51aa synapse/synapse/handlers/federation.py Line 2099 in 36e51aa |
| + keyvalues={ | ||
| + "room_id": room_id, | ||
| + }, | ||
| + retcol="1", |
NegativeMjark
Jun 19, 2017
Contributor
This is slightly evil, I suspect that people looking at the _simple_select_one_onecol wouldn't expect someone to pass "1" as a column ID. But it's probably fine for now. :(
erikjohnston
merged commit b5f665d
into
develop
Jun 19, 2017
5 of 8 checks passed
| + | ||
| + DEFAULT_MESSAGE = ( | ||
| + "Sharing illegal content on this server is not permitted and rooms in" | ||
| + " violatation will be blocked." |
turt2live
Jun 19, 2017
fwiw, later on in this file is This need a user have a administrator access in Synapse.

erikjohnston commentedJun 19, 2017
Tested by: matrix-org/sytest#360