0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-18 19:04:39 +01:00
synapse/tests/rest
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
..
admin Create a constant for a small png image in tests. (#10834) 2021-09-16 12:01:14 -04:00
client Always add local users to the user directory (#10796) 2021-09-21 12:02:34 +00:00
key Rewrite the KeyRing (#10035) 2021-06-02 16:37:59 +01:00
media Create a constant for a small png image in tests. (#10834) 2021-09-16 12:01:14 -04:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_health.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_well_known.py Use direct references for some configuration variables (#10798) 2021-09-13 13:07:12 -04:00