forked-synapse/tests/handlers
Andrew Morgan 13e9029f44
Add a config option to prioritise local users in user directory search results (#9383)
This PR adds a homeserver config option, `user_directory.prefer_local_users`, that when enabled will show local users higher in user directory search results than remote users. This option is off by default.

Note that turning this on doesn't necessarily mean that remote users will always be put below local users, but they should be assuming all other ranking factors (search query match, profile information present etc) are identical.

This is useful for, say, University networks that are openly federating, but want to prioritise local students and staff in the user directory over other random users.
2021-02-19 11:02:03 +00:00
..
__init__.py Reference Matrix Home Server 2014-08-12 15:10:52 +01:00
test_admin.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_appservice.py Convert additional test-cases to homeserver test case. (#9396) 2021-02-16 08:04:15 -05:00
test_auth.py Convert some test cases to use HomeserverTestCase. (#9377) 2021-02-11 10:29:09 -05:00
test_cas.py Combine the CAS & SAML implementations for required attributes. (#9326) 2021-02-11 10:05:15 -05:00
test_device.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_directory.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_e2e_keys.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_e2e_room_keys.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_federation.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_message.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_oidc.py Support for form_post in OIDC responses (#9376) 2021-02-17 10:15:14 +00:00
test_password_providers.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_presence.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_profile.py Add configs to make profile data more private (#9203) 2021-02-19 09:50:41 +00:00
test_register.py Remove the deprecated Handlers object (#8494) 2020-10-09 07:24:34 -04:00
test_saml.py Combine the CAS & SAML implementations for required attributes. (#9326) 2021-02-11 10:05:15 -05:00
test_stats.py Rename 'populate_stats_process_rooms_2' background job back to 'populate_stats_process_rooms' again (#8243) 2020-09-08 11:05:59 +01:00
test_sync.py Add admin API for logging in as a user (#8617) 2020-11-17 10:51:25 +00:00
test_typing.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_user_directory.py Add a config option to prioritise local users in user directory search results (#9383) 2021-02-19 11:02:03 +00:00