MatrixSynapse/synapse/config
David Robertson e2a1adbf5d
Allow selecting "prejoin" events by state keys (#14642)
* Declare new config

* Parse new config

* Read new config

* Don't use trial/our TestCase where it's not needed

Before:

```
$ time trial tests/events/test_utils.py > /dev/null

real	0m2.277s
user	0m2.186s
sys	0m0.083s
```

After:
```
$ time trial tests/events/test_utils.py > /dev/null

real	0m0.566s
user	0m0.508s
sys	0m0.056s
```

* Helper to upsert to event fields

without exceeding size limits.

* Use helper when adding invite/knock state

Now that we allow admins to include events in prejoin room state with
arbitrary state keys, be a good Matrix citizen and ensure they don't
accidentally create an oversized event.

* Changelog

* Move StateFilter tests

should have done this in #14668

* Add extra methods to StateFilter

* Use StateFilter

* Ensure test file enforces typed defs; alphabetise

* Workaround surprising get_current_state_ids

* Whoops, fix mypy
2022-12-13 00:54:46 +00:00
..
__init__.py
__main__.py
_base.py
_base.pyi
_util.py Allow selecting "prejoin" events by state keys (#14642) 2022-12-13 00:54:46 +00:00
account_validity.py
api.py Allow selecting "prejoin" events by state keys (#14642) 2022-12-13 00:54:46 +00:00
appservice.py
auth.py
background_updates.py
cache.py Fix `track_memory_usage` on poetry-core 1.3.x installations (#14221) 2022-10-18 13:59:04 +01:00
captcha.py
cas.py
consent.py
database.py
emailconfig.py
experimental.py Create MSC1767 (extensible events) room version; Implement MSC3932 (#14521) 2022-11-28 17:22:34 -07:00
federation.py
homeserver.py
jwt.py
key.py
logger.py Remove redundant types from comments. (#14412) 2022-11-16 15:25:24 +00:00
metrics.py Remove legacy Prometheus metrics names. They were deprecated in Synapse v1.69.0 and disabled by default in Synapse v1.71.0. (#14538) 2022-11-24 09:09:17 +00:00
modules.py
oembed.py
oidc.py Support OIDC backchannel logouts (#11414) 2022-10-31 13:07:30 -04:00
password_auth_providers.py
push.py Add `push.enabled` option to disable push notification calculation (#14551) 2022-12-01 13:46:24 +00:00
ratelimiting.py Reduce default third party invite rate limit to 216 invites per day (#14487) 2022-11-18 18:10:01 +00:00
redis.py
registration.py
repository.py
retention.py
room.py
room_directory.py
saml2.py
server.py Implementation of HTTP 307 response for MSC3886 POST endpoint (#14018) 2022-10-18 15:52:25 +00:00
server_notices.py
spam_checker.py
sso.py
stats.py
third_party_event_rules.py
tls.py
tracer.py
user_directory.py
voip.py
workers.py Refactor `federation_sender` and `pusher` configuration loading. (#14496) 2022-11-22 21:33:58 +00:00