forked-synapse/tests/handlers
David Robertson 60453315bd
Always add local users to the user directory (#10796)
It's a simplification, but one that'll help make the user directory logic easier
to follow with the other changes upcoming. It's not strictly required for those
changes, but this will help simplify the resulting logic that listens for
`m.room.member` events and generally make the logic easier to follow.

This means the config option `search_all_users` ends up controlling the
search query only, and not the data we store. The cost of doing so is an
extra row in the `user_directory` and `user_directory_search` tables for
each local user which

- belongs to no public rooms
- belongs to no private rooms of size ≥ 2

I think the cost of this will be marginal (since they'll already have entries
 in `users` and `profiles` anyway).

As a small upside, a homeserver whose directory was built with this
change can toggle `search_all_users` without having to rebuild their
directory.

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2021-09-21 12:02:34 +00:00
..
__init__.py
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 Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_appservice.py
test_auth.py
test_cas.py Rename handler and config modules which end in handler/config. (#9816) 2021-04-20 14:55:20 -04:00
test_device.py
test_directory.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_e2e_keys.py
test_e2e_room_keys.py
test_federation.py Split FederationHandler in half (#10692) 2021-08-26 21:41:44 +01:00
test_message.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_oidc.py
test_password_providers.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_presence.py Split FederationHandler in half (#10692) 2021-08-26 21:41:44 +01:00
test_profile.py Always add local users to the user directory (#10796) 2021-09-21 12:02:34 +00:00
test_receipts.py
test_register.py
test_room_summary.py Ignore rooms with unknown room versions in the spaces summary. (#10727) 2021-09-01 17:01:08 +00:00
test_room.py Pull out encrypted_by_default tests from user_directory tests (#10752) 2021-09-06 11:37:54 +01:00
test_saml.py
test_send_email.py Fix incompatibility with Twisted < 21. (#10713) 2021-08-27 16:33:41 +01:00
test_stats.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_sync.py Do not include rooms with an unknown room version in a sync response. (#10644) 2021-08-19 11:12:55 -04:00
test_typing.py
test_user_directory.py Easy refactors of the user directory (#10789) 2021-09-10 10:54:38 +01:00