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

Merged
merged 5 commits into from Jun 19, 2017

Conversation

Projects
None yet
4 participants

@erikjohnston erikjohnston referenced this pull request in matrix-org/sytest Jun 19, 2017

Merged

Add tests for room shutdown api #360

@@ -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

NegativeMjark Jun 19, 2017

Contributor

Did you mean for the power_level_content to end up in this PR?

@erikjohnston

erikjohnston Jun 19, 2017

Owner

I guess it would have been nice to split the PR in two.

@NegativeMjark

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 :)

Contributor

NegativeMjark commented Jun 19, 2017

Do we also need to worry about the calls to send_membership_event?

yield member_handler.send_membership_event(None, event, context)

yield member_handler.send_membership_event(None, event, context)

Owner

erikjohnston commented Jun 19, 2017

Do we also need to worry about the calls to send_membership_event?

cat_fuck

+ keyvalues={
+ "room_id": room_id,
+ },
+ retcol="1",
@NegativeMjark

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 erikjohnston merged commit b5f665d into develop Jun 19, 2017

5 of 8 checks passed

Sytest Dendron (Merged PR) Build finished.
Details
Sytest Postgres (Merged PR) Build finished.
Details
Sytest Dendron (Commit) Build #2345 origin/erikj/shutdown_room in progress...
Details
Sytest Postgres (Commit) Build #3182 origin/erikj/shutdown_room succeeded in 9 min 2 sec
Details
Sytest SQLite (Commit) Build #3264 origin/erikj/shutdown_room succeeded in 1 min 42 sec
Details
Sytest SQLite (Merged PR) Build finished.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
+
+ DEFAULT_MESSAGE = (
+ "Sharing illegal content on this server is not permitted and rooms in"
+ " violatation will be blocked."
@ara4n

ara4n Jun 19, 2017

Owner

"violation"

@turt2live

turt2live Jun 19, 2017

fwiw, later on in this file is This need a user have a administrator access in Synapse.

@ara4n

ara4n Aug 4, 2017

Owner

fixed now.

@erikjohnston erikjohnston deleted the erikj/shutdown_room branch Oct 26, 2017

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