synapse-old/synapse/events
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
..
__init__.py Add `FrozenEvent.get_state_key` and use it in a couple of places (#11793) 2022-01-21 09:10:01 +00:00
builder.py Get db signatures file to pass mypy (#11312) 2021-11-11 17:04:44 +00:00
presence_router.py Add type hints to synapse.events.*. (#11066) 2021-10-13 07:24:07 -04:00
snapshot.py Add `FrozenEvent.get_state_key` and use it in a couple of places (#11793) 2022-01-21 09:10:01 +00:00
spamcheck.py Add type hints to synapse.events.*. (#11066) 2021-10-13 07:24:07 -04:00
third_party_rules.py Make `check_event_allowed` module API callback not fail open (accept events) when an exception is raised (#11033) 2021-11-01 15:45:56 +00:00
utils.py Improvements to bundling aggregations. (#11815) 2022-01-26 08:27:04 -05:00
validator.py Fix another jsonschema typecheck error (#11830) 2022-01-25 15:29:28 -05:00