anonymousland-synapse/tests/handlers
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
..
__init__.py Reference Matrix Home Server 2014-08-12 15:10:52 +01:00
oidc_test_key.p8 JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
oidc_test_key.pub.pem JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
test_admin.py Add more user information to export-data command. (#14894) 2023-02-01 15:45:19 +00:00
test_appservice.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_auth.py Save login tokens in database (#13844) 2022-10-26 11:45:41 +01:00
test_cas.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_deactivate_account.py Port the push rule classes to Rust. (#13768) 2022-09-20 12:10:31 +01:00
test_device.py Revert the deletion of stale devices due to performance issues. (#14662) 2022-12-12 13:55:23 +00:00
test_directory.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_e2e_keys.py Fix bug in device list caching when remote users leave rooms (#13749) 2022-09-14 10:42:57 +01:00
test_e2e_room_keys.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_federation_event.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_federation.py Faster joins: Refactor handling of servers in room (#14954) 2023-02-03 15:39:59 +00:00
test_message.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_oidc.py Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
test_password_providers.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_presence.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_profile.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_receipts.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_register.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_room_member.py Faster joins: Refactor handling of servers in room (#14954) 2023-02-03 15:39:59 +00:00
test_room_summary.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_room.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_saml.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_send_email.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_sso.py Add support for handling avatar with SSO login (#13917) 2022-11-25 15:16:50 +00:00
test_stats.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_sync.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_typing.py Fix type hints in typing edu unit tests (#14886) 2023-01-26 10:15:50 +00:00
test_user_directory.py Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675) 2023-02-09 13:05:02 -08:00