forked-synapse/tests
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
..
api MSC2918 Refresh tokens implementation (#9450) 2021-06-24 14:33:20 +01:00
app Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
appservice Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
config Add config option to use non-default manhole password and keys (#10643) 2021-09-06 16:08:03 +01:00
crypto Rewrite the KeyRing (#10035) 2021-06-02 16:37:59 +01:00
events Support MSC3375: room version 9. (#10747) 2021-09-03 12:51:15 -04:00
federation Split FederationHandler in half (#10692) 2021-08-26 21:41:44 +01:00
handlers Always add local users to the user directory (#10796) 2021-09-21 12:02:34 +00:00
http support federation queries through http connect proxy (#10475) 2021-08-11 15:34:59 +01:00
logging Merge branch 'master' into develop 2021-04-20 14:55:16 +01:00
module_api Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
push Synapse 1.42.0rc1 (2021-09-01) 2021-09-01 14:58:14 +01:00
replication Create a constant for a small png image in tests. (#10834) 2021-09-16 12:01:14 -04:00
rest Always add local users to the user directory (#10796) 2021-09-21 12:02:34 +00:00
scripts Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server_notices Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
state Update the MSC3083 support to verify if joins are from an authorized server. (#10254) 2021-07-26 12:17:00 -04:00
storage Make StateFilter frozen so we can hash it (#10816) 2021-09-14 16:35:53 +01:00
test_utils Create a constant for a small png image in tests. (#10834) 2021-09-16 12:01:14 -04:00
util Use inline type hints in tests/ (#10350) 2021-07-13 11:52:58 +01:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server.py Fix incompatibility with Twisted < 21. (#10713) 2021-08-27 16:33:41 +01:00
test_distributor.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_event_auth.py Support MSC3289: Room version 8 (#10449) 2021-08-09 10:46:39 +02:00
test_federation.py Get rid of _auth_and_persist_event (#10781) 2021-09-08 19:03:08 +01:00
test_mau.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_metrics.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_phone_home.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_preview.py Support underscores (in addition to hyphens) for charset detection. (#10410) 2021-07-27 17:29:42 +00:00
test_server.py Improved validation for received requests (#9817) 2021-04-23 19:20:44 +01:00
test_state.py Add a module type for account validity (#9884) 2021-07-16 18:11:53 +02:00
test_terms_auth.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_test_utils.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_types.py [pyupgrade] tests/ (#10347) 2021-07-13 11:43:15 +01:00
test_visibility.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
unittest.py Add types to synapse.util. (#10601) 2021-09-10 17:03:18 +01:00
utils.py Allow setting transaction limit for db connections (#10440) 2021-08-02 13:24:43 +00:00