synapse-old/synapse/config
Erik Johnston 2927921942
Clean up `ShardedWorkerHandlingConfig` (#9466)
* Split ShardedWorkerHandlingConfig

This is so that we have a type level understanding of when it is safe to
call `get_instance(..)` (as opposed to `should_handle(..)`).

* Remove special cases in ShardedWorkerHandlingConfig.

`ShardedWorkerHandlingConfig` tried to handle the various different ways
it was possible to configure federation senders and pushers. This led to
special cases that weren't hit during testing.

To fix this the handling of the different cases is moved from there and
`generic_worker` into the worker config class. This allows us to have
the logic in one place and allows the rest of the code to ignore the
different cases.
2021-02-24 13:23:18 +00:00
..
__init__.py Let synctl use a config directory. (#5904) 2019-08-28 15:55:58 +01:00
__main__.py isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00
_base.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
_base.pyi Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
_util.py Fix validate_config on nested objects (#9054) 2021-01-08 14:23:04 +00:00
api.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
appservice.py Send some ephemeral events to appservices (#8437) 2020-10-15 12:33:28 -04:00
auth.py Parse ui_auth.session_timeout as a duration (instead of treating it as ms) (#9426) 2021-02-18 09:18:14 -05:00
cache.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
captcha.py Clean-up the template loading code. (#9200) 2021-01-27 10:59:50 -05:00
cas.py Synapse 1.27.0rc2 (2021-02-11) 2021-02-11 11:56:03 -05:00
consent_config.py Clean-up the template loading code. (#9200) 2021-01-27 10:59:50 -05:00
database.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
emailconfig.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
experimental.py Implement MSC2858 support (#9183) 2021-01-27 12:41:24 +00:00
federation.py Add configs to make profile data more private (#9203) 2021-02-19 09:50:41 +00:00
groups.py Update the value of group_creation_prefix in sample config. (#8992) 2020-12-29 09:30:48 -05:00
homeserver.py Implement MSC2858 support (#9183) 2021-01-27 12:41:24 +00:00
jwt_config.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
key.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
logger.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
metrics.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
oidc_config.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
password_auth_providers.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
push.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
ratelimiting.py Ratelimit cross-user key sharing requests. (#8957) 2021-02-19 13:20:34 -05:00
redis.py Update worker docs with recent enhancements (#7969) 2020-07-29 23:22:13 +01:00
registration.py Synapse 1.27.0rc2 (2021-02-11) 2021-02-11 11:56:03 -05:00
repository.py Remove vestiges of uploads_path config (#9462) 2021-02-22 19:54:49 +00:00
room.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
room_directory.py Fix some typos. 2021-02-12 11:14:12 -05:00
saml2_config.py Synapse 1.27.0rc2 (2021-02-11) 2021-02-11 11:56:03 -05:00
server.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
server_notices_config.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
spam_checker.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
sso.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
stats.py Remove obsolete __future__ imports (#8337) 2020-09-17 08:37:01 -04:00
third_party_event_rules.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
tls.py Enable mypy checking for unreachable code and fix instances. (#8432) 2020-10-01 08:09:18 -04:00
tracer.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
user_directory.py Clean up the user directory sample config section (#9385) 2021-02-22 11:44:31 +00:00
voip.py Add config linting script that checks for bool casing (#6203) 2019-10-23 13:22:54 +01:00
workers.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00