0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-14 22:11:47 +01:00
synapse/tests
Shay 03bccd542b
Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675)
* add class UnpersistedEventContext

* modify create new client event to create unpersistedeventcontexts

* persist event contexts after creation

* fix tests to persist unpersisted event contexts

* cleanup

* misc lints + cleanup

* changelog + fix comments

* lints

* fix batch insertion?

* reduce redundant calculation

* add unpersisted event classes

* rework compute_event_context, split into function that returns unpersisted event context and then persists it

* use calculate_context_info to create unpersisted event contexts

* update typing

* $%#^&*

* black

* fix comments and consolidate classes, use attr.s for class

* requested changes

* lint

* requested changes

* requested changes

* refactor to be stupidly explicit

* clearer renaming and flow

* make partial state non-optional

* update docstrings

---------

Co-authored-by: Erik Johnston <erik@matrix.org>
2023-02-09 13:05:02 -08:00
..
api Properly typecheck tests.api (#14983) 2023-02-03 20:03:23 +00:00
app Properly typecheck tests.app (#14984 2023-02-03 19:22:40 +00:00
appservice Type hints for tests.appservice (#14990) 2023-02-06 12:49:06 +00:00
config
crypto
events Proper types for tests.module_api (#15031) 2023-02-09 00:23:35 +00:00
federation Type hints for tests.federation (#14991) 2023-02-06 16:05:06 +00:00
handlers Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675) 2023-02-09 13:05:02 -08:00
http Properly typecheck types.http (#14988) 2023-02-07 00:20:04 +00:00
logging Add missing type hints in tests (#14879) 2023-01-26 14:45:24 -05:00
metrics
module_api Proper types for tests.module_api (#15031) 2023-02-09 00:23:35 +00:00
push MSC3873: Escape keys when flattening dicts. (#15004) 2023-02-08 13:09:41 -05:00
replication Add missing type hints to tests.replication. (#14987) 2023-02-06 09:55:00 -05:00
rest Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675) 2023-02-09 13:05:02 -08:00
scripts Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
server_notices Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
state
storage Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675) 2023-02-09 13:05:02 -08:00
test_utils Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675) 2023-02-09 13:05:02 -08:00
types
util Remove unnecessary reactor reference from _PerHostRatelimiter (#14842) 2023-01-16 13:16:19 +00:00
__init__.py
server.py Properly typecheck types.http (#14988) 2023-02-07 00:20:04 +00:00
test_distributor.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_event_auth.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_federation.py Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
test_mau.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_phone_home.py
test_rust.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_server.py
test_state.py Add missing types to test_state. (#14985) 2023-02-06 16:11:09 +00:00
test_terms_auth.py Proper types for tests.test_terms_auth (#15007) 2023-02-07 12:03:39 +00:00
test_test_utils.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_types.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_visibility.py Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675) 2023-02-09 13:05:02 -08:00
unittest.py Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
utils.py Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675) 2023-02-09 13:05:02 -08:00