mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
changelog + lint
This commit is contained in:
parent
9a49bea3af
commit
5ea23469ee
5 changed files with 11 additions and 11 deletions
1
changelog.d/17904.feature
Normal file
1
changelog.d/17904.feature
Normal file
|
@ -0,0 +1 @@
|
|||
Allow Admin API delete room v2 actions to be run on workers.
|
|
@ -136,12 +136,11 @@ WORKERS_CONFIG: Dict[str, Dict[str, Any]] = {
|
|||
"worker_extra_conf": "enable_media_repo: true",
|
||||
},
|
||||
"admin": {
|
||||
"app": "synapse.app.generic_worker",
|
||||
"listener_resources": ["replication", "admin"],
|
||||
"endpoint_patterns": ["^/_synapse/admin/v2/rooms/.*$"],
|
||||
"shared_extra_conf": {},
|
||||
"worker_extra_conf": "",
|
||||
|
||||
"app": "synapse.app.generic_worker",
|
||||
"listener_resources": ["replication", "admin"],
|
||||
"endpoint_patterns": ["^/_synapse/admin/v2/rooms/.*$"],
|
||||
"shared_extra_conf": {},
|
||||
"worker_extra_conf": "",
|
||||
},
|
||||
"appservice": {
|
||||
"app": "synapse.app.generic_worker",
|
||||
|
@ -582,7 +581,7 @@ def is_sharding_allowed_for_worker_type(worker_type: str) -> bool:
|
|||
"receipts",
|
||||
"typing",
|
||||
"to_device",
|
||||
"admin"
|
||||
"admin",
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -28,12 +28,13 @@ from twisted.web.resource import Resource
|
|||
import synapse
|
||||
import synapse.events
|
||||
from synapse.api.urls import (
|
||||
ADMIN_PREFIX,
|
||||
CLIENT_API_PREFIX,
|
||||
FEDERATION_PREFIX,
|
||||
LEGACY_MEDIA_PREFIX,
|
||||
MEDIA_R0_PREFIX,
|
||||
MEDIA_V3_PREFIX,
|
||||
SERVER_KEY_PREFIX, ADMIN_PREFIX,
|
||||
SERVER_KEY_PREFIX,
|
||||
)
|
||||
from synapse.app import _base
|
||||
from synapse.app._base import (
|
||||
|
@ -52,7 +53,7 @@ from synapse.logging.context import LoggingContext
|
|||
from synapse.metrics import METRICS_PREFIX, MetricsResource, RegistryProxy
|
||||
from synapse.replication.http import REPLICATION_PREFIX, ReplicationRestResource
|
||||
from synapse.rest import ClientRestResource
|
||||
from synapse.rest.admin import register_servlets_for_media_repo, AdminRestResource
|
||||
from synapse.rest.admin import AdminRestResource, register_servlets_for_media_repo
|
||||
from synapse.rest.health import HealthResource
|
||||
from synapse.rest.key.v2 import KeyResource
|
||||
from synapse.rest.synapse.client import build_synapse_client_resource_tree
|
||||
|
|
|
@ -191,7 +191,7 @@ KNOWN_RESOURCES = {
|
|||
"openid",
|
||||
"replication",
|
||||
"static",
|
||||
"admin"
|
||||
"admin",
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2519,7 +2519,6 @@ class RoomStore(RoomBackgroundUpdateStore, RoomWorkerStore):
|
|||
)
|
||||
return next_id
|
||||
|
||||
|
||||
async def unblock_room(self, room_id: str) -> None:
|
||||
"""Remove the room from blocking list.
|
||||
|
||||
|
|
Loading…
Reference in a new issue