forked-synapse/synapse
Richard van der Hoff 2ec8ca5e60
Remove SynapseRequest.get_user_agent (#9069)
SynapseRequest is in danger of becoming a bit of a dumping-ground for "useful stuff relating to Requests",
which isn't really its intention (its purpose is to override render, finished and connectionLost to set up the 
LoggingContext and write the right entries to the request log).

Putting utility functions inside SynapseRequest means that lots of our code ends up requiring a
SynapseRequest when there is nothing synapse-specific about the Request at all, and any old
twisted.web.iweb.IRequest will do. This increases code coupling and makes testing more difficult.

In short: move get_user_agent out to a utility function.
2021-01-12 12:34:16 +00:00
..
_scripts Strip trailing / from server_url in register_new_matrix_user (#8823) 2020-11-26 10:57:26 +00:00
api Remove SynapseRequest.get_user_agent (#9069) 2021-01-12 12:34:16 +00:00
app Move more encryption endpoints off master (#9068) 2021-01-11 18:01:27 +00:00
appservice Tie together matches_user_in_member_list and get_users_in_room caches (#8676) 2020-10-30 15:23:16 +00:00
config Fix validate_config on nested objects (#9054) 2021-01-08 14:23:04 +00:00
crypto Add type hints to the crypto module. (#8999) 2021-01-04 10:04:50 -05:00
events Implement MSC2176: Updated redaction rules (#8984) 2021-01-05 07:41:48 -05:00
federation Support routing edu's to multiple instances (#9042) 2021-01-07 18:07:28 +00:00
groups Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
handlers Remove SynapseRequest.get_user_agent (#9069) 2021-01-12 12:34:16 +00:00
http Remove SynapseRequest.get_user_agent (#9069) 2021-01-12 12:34:16 +00:00
logging Add type hints to the logging context code. (#8939) 2021-01-05 08:06:55 -05:00
metrics Various clean-ups to the logging context code (#8935) 2020-12-14 14:19:47 -05:00
module_api Add admin API for logging in as a user (#8617) 2020-11-17 10:51:25 +00:00
push Improve the performance of calculating ignored users in large rooms (#9024) 2021-01-07 13:03:38 +00:00
replication Allow running sendToDevice on workers (#9044) 2021-01-07 20:19:26 +00:00
res Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
rest Also support remote users on the joined_rooms admin API. (#8948) 2021-01-11 14:32:17 -05:00
server_notices Add admin API for logging in as a user (#8617) 2020-11-17 10:51:25 +00:00
spam_checker_api Combine SpamCheckerApi with the more generic ModuleApi. (#8464) 2020-10-07 12:03:26 +01:00
state Fix mainline ordering in state res v2 (#8971) 2020-12-18 15:00:34 +00:00
static Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
storage Move more encryption endpoints off master (#9068) 2021-01-11 18:01:27 +00:00
streams Make token serializing/deserializing async (#8427) 2020-09-30 20:29:19 +01:00
util Use a chain cover index to efficiently calculate auth chain difference (#8868) 2021-01-11 16:09:22 +00:00
__init__.py 1.25.0rc1 2021-01-06 07:08:13 -05:00
event_auth.py Ensure that event.redacts is the proper type before handling it (#8457) 2020-10-05 10:24:17 -04:00
notifier.py Fix "Starting metrics collection from sentinel context" errors (#9053) 2021-01-08 14:33:53 +00:00
python_dependencies.py Fix installing pysaml2 on Python 3.5. (#8898) 2020-12-08 13:41:25 -05:00
secrets.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
server.py Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00
types.py Implement a username picker for synapse (#8942) 2020-12-18 14:19:46 +00:00
visibility.py Try and drop stale extremities. (#8929) 2020-12-18 09:49:18 +00:00