synapse-product/synapse
Patrick Cloke 2897fb6b4f
Improvements to bundling aggregations. (#11815)
This is some odds and ends found during the review of #11791
and while continuing to work in this code:

* Return attrs classes instead of dictionaries from some methods
  to improve type safety.
* Call `get_bundled_aggregations` fewer times.
* Adds a missing assertion in the tests.
* Do not return empty bundled aggregations for an event (preferring
  to not include the bundle at all, as the docstring states).
2022-01-26 08:27:04 -05:00
..
_scripts Add a flag to the synapse_review_recent_signups script to ignore and filter appservice users. (#11675) 2022-01-17 16:43:25 +00:00
api Use auto_attribs/native type hints for attrs classes. (#11692) 2022-01-13 13:49:28 +00:00
app Check that gc method is available before using in synapse/app/_base (#11816) 2022-01-25 10:35:18 -08:00
appservice Add missing type hints to synapse.appservice (#11360) 2021-12-14 17:02:46 +00:00
config Add a config flag to inhibit M_USER_IN_USE during registration (#11743) 2022-01-26 13:02:54 +01:00
crypto Use auto_attribs/native type hints for attrs classes. (#11692) 2022-01-13 13:49:28 +00:00
events Improvements to bundling aggregations. (#11815) 2022-01-26 08:27:04 -05:00
federation Add admin API to reset connection timeouts for remote server (#11639) 2022-01-25 12:06:29 +00:00
groups Add type annotations to synapse.metrics (#10847) 2021-11-17 19:07:02 +00:00
handlers Improvements to bundling aggregations. (#11815) 2022-01-26 08:27:04 -05:00
http Don't print HTTPStatus.* in "Processed..." logs (#11827) 2022-01-26 12:47:34 +00:00
logging Add missing auto_attribs=True to the _WrappedRustReporter class (#11768) 2022-01-19 12:39:11 +00:00
metrics Fix mypy for platforms without epoll support. (#11771) 2022-01-19 16:50:09 +00:00
module_api Fix ModuleApi.looping_background_call for non-async functions (#11524) 2021-12-07 11:41:31 +00:00
push Improvements to bundling aggregations. (#11815) 2022-01-26 08:27:04 -05:00
replication Stop reading from event_reference_hashes (#11794) 2022-01-21 09:18:10 +00:00
res Allow configuration of the oEmbed URLs. (#10714) 2021-08-31 18:37:07 -04:00
rest Improvements to bundling aggregations. (#11815) 2022-01-26 08:27:04 -05:00
server_notices disallow-untyped-defs for synapse.server_notices (#11021) 2021-10-07 19:55:15 +01:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Remove log_function and its uses (#11761) 2022-01-18 13:06:04 +00:00
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage Improvements to bundling aggregations. (#11815) 2022-01-26 08:27:04 -05:00
streams Use auto_attribs/native type hints for attrs classes. (#11692) 2022-01-13 13:49:28 +00:00
util Use auto_attribs/native type hints for attrs classes. (#11692) 2022-01-13 13:49:28 +00:00
__init__.py Merge branch 'master' into develop 2022-01-25 12:52:27 +00:00
event_auth.py Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
notifier.py Remove log_function and its uses (#11761) 2022-01-18 13:06:04 +00:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
python_dependencies.py Avoid type annotation problems in prom-client (#11834) 2022-01-26 12:06:56 +00:00
server.py Bundle aggregations outside of the serialization method. (#11612) 2022-01-07 09:10:46 -05:00
types.py Use auto_attribs/native type hints for attrs classes. (#11692) 2022-01-13 13:49:28 +00:00
visibility.py Make the get_global_account_data_by_type_for_user cache be a tree-cache whose key is prefixed with the user ID (#11788) 2022-01-21 08:38:36 +00:00