MatrixSynapse/synapse/handlers
Dirk Klimpel 491f0dab1b
Add delete room admin endpoint (#7613)
The Delete Room admin API allows server admins to remove rooms from server
and block these rooms.
`DELETE /_synapse/admin/v1/rooms/<room_id>`
It is a combination and improvement of "[Shutdown room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/shutdown_room.md)" and "[Purge room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/purge_room.md)" API.

Fixes: #6425 

It also fixes a bug in [synapse/storage/data_stores/main/room.py](synapse/storage/data_stores/main/room.py) in ` get_room_with_stats`.
It should return `None` if the room is unknown. But it returns an `IndexError`.
901b1fa561/synapse/storage/data_stores/main/room.py (L99-L105)

Related to:
- #5575
- https://github.com/Awesome-Technologies/synapse-admin/issues/17

Signed-off-by: Dirk Klimpel dirk@klimpel.org
2020-07-14 12:36:23 +01:00
..
ui_auth Convert identity handler to async/await. (#7561) 2020-05-26 13:46:22 -04:00
__init__.py
_base.py Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
account_data.py Remove unused `get_pagination_rows` methods. (#6557) 2019-12-17 11:44:32 +00:00
account_validity.py Fix buggy condition in account validity handler (#7074) 2020-03-16 12:16:30 +00:00
acme.py Small grammar fixes to the ACME v1 deprecation notice (#6944) 2020-02-21 08:53:01 +00:00
acme_issuing_service.py Allow configuration of the path used for ACME account keys. 2019-06-24 13:51:22 +01:00
admin.py Admin api to add an email address (#6789) 2020-02-07 10:29:36 +00:00
appservice.py Convert the appservice handler to async/await. (#7775) 2020-07-06 07:40:35 -04:00
auth.py isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00
cas_handler.py Do not use canonicaljson to magically handle decoding bytes from JSON. (#7802) 2020-07-10 14:30:08 -04:00
deactivate_account.py Support handling registration requests across multiple client readers. (#7830) 2020-07-13 13:31:46 -04:00
device.py Fix "There was no active span when trying to log." error (#7698) 2020-06-15 16:42:21 +01:00
devicemessage.py Convert the device message and pagination handlers to async/await. (#7678) 2020-06-16 08:06:17 -04:00
directory.py Convert directory handler to async/await (#7727) 2020-06-22 07:18:00 -04:00
e2e_keys.py Replace iteritems/itervalues/iterkeys with native versions. (#7692) 2020-06-15 07:03:36 -04:00
e2e_room_keys.py Ensure etag is a string for GET room_keys/version response (#7691) 2020-06-15 13:42:44 -04:00
events.py Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
federation.py Fix resync remote devices on receive PDU in worker mode. (#7815) 2020-07-10 18:23:17 +01:00
groups_local.py Add `HomeServer.signing_key` property (#7805) 2020-07-08 17:51:56 +01:00
identity.py Stop passing bytes when dumping JSON (#7799) 2020-07-08 07:14:56 -04:00
initial_sync.py Stop the master relaying USER_SYNC for other workers (#7318) 2020-04-22 22:39:04 +01:00
message.py Generate real events when we reject invites (#7804) 2020-07-09 10:40:19 +01:00
oidc_handler.py Ensure that HTML pages served from Synapse include headers to avoid embedding. 2020-07-02 09:58:31 -04:00
pagination.py Convert the device message and pagination handlers to async/await. (#7678) 2020-06-16 08:06:17 -04:00
password_policy.py Allow server admins to define and enforce a password policy (MSC2000). (#7118) 2020-03-26 16:51:13 +00:00
presence.py Refactor getting replication updates from database. (#7636) 2020-06-16 17:10:28 +01:00
profile.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
read_marker.py Port receipt and read markers to async/wait 2019-10-29 15:08:22 +00:00
receipts.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
register.py Additional configuration options for auto-join rooms (#7763) 2020-06-30 15:41:36 -04:00
room.py Add delete room admin endpoint (#7613) 2020-07-14 12:36:23 +01:00
room_list.py Replace iteritems/itervalues/iterkeys with native versions. (#7692) 2020-06-15 07:03:36 -04:00
room_member.py `update_membership` declaration: now always returns an event id. (#7809) 2020-07-09 13:01:42 +01:00
room_member_worker.py `update_membership` declaration: now always returns an event id. (#7809) 2020-07-09 13:01:42 +01:00
saml_handler.py Clean up exception handling in SAML2ResponseResource (#7614) 2020-06-03 10:41:12 +01:00
search.py Convert search code to async/await. (#7460) 2020-05-11 15:12:39 -04:00
set_password.py Hash passwords earlier in the password reset process (#7538) 2020-05-20 09:48:03 -04:00
state_deltas.py Convert user directory handler and related classes to async/await. (#7640) 2020-06-05 14:42:55 -04:00
stats.py Convert user directory handler and related classes to async/await. (#7640) 2020-06-05 14:42:55 -04:00
sync.py Back out MSC2625 implementation (#7761) 2020-07-01 11:08:25 +01:00
typing.py Refactor getting replication updates from database v2. (#7740) 2020-07-07 12:11:35 +01:00
user_directory.py Replace iteritems/itervalues/iterkeys with native versions. (#7692) 2020-06-15 07:03:36 -04:00