MatrixSynapse/synapse/handlers
reivilibre 1f5473465d
Refresh remote profiles that have been marked as stale, in order to fill the user directory. [rei:userdirpriv] (#14756)
* Scaffolding for background process to refresh profiles

* Add scaffolding for background process to refresh profiles for a given server

* Implement the code to select servers to refresh from

* Ensure we don't build up multiple looping calls

* Make `get_profile` able to respect backoffs

* Add logic for refreshing users

* When backing off, schedule a refresh when the backoff is over

* Wake up the background processes when we receive an interesting state event

* Add tests

* Newsfile

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>

* Add comment about 1<<62

---------

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
2023-03-16 11:44:11 +00:00
..
ui_auth
__init__.py
account.py
account_data.py
account_validity.py Move Account Validity callbacks to a dedicated file (#15237) 2023-03-16 10:35:31 +00:00
admin.py
appservice.py
auth.py
cas.py
deactivate_account.py
device.py
devicemessage.py
directory.py
e2e_keys.py
e2e_room_keys.py
event_auth.py More speedups/fixes to creating batched events (#15195) 2023-03-07 13:54:39 -08:00
events.py Pass the requester during event serialization. (#15174) 2023-03-06 16:08:39 +00:00
federation.py Refactor `filter_events_for_server` (#15240) 2023-03-10 15:31:25 +00:00
federation_event.py
identity.py
initial_sync.py Pass the requester during event serialization. (#15174) 2023-03-06 16:08:39 +00:00
message.py Pass the requester during event serialization. (#15174) 2023-03-06 16:08:39 +00:00
oidc.py
pagination.py Include the room ID in more purge room log lines. (#15222) 2023-03-08 20:08:56 +00:00
password_policy.py
presence.py
profile.py Refresh remote profiles that have been marked as stale, in order to fill the user directory. [rei:userdirpriv] (#14756) 2023-03-16 11:44:11 +00:00
push_rules.py
read_marker.py
receipts.py
register.py Avoid unneeded work if auto-join rooms aren't configured. (#15262) 2023-03-14 08:18:49 -04:00
relations.py Pass the requester during event serialization. (#15174) 2023-03-06 16:08:39 +00:00
room.py Add topic and name events to group of events that are batch persisted when creating a room. (#15229) 2023-03-08 19:27:20 -08:00
room_batch.py
room_list.py
room_member.py
room_member_worker.py
room_summary.py
saml.py
search.py Pass the requester during event serialization. (#15174) 2023-03-06 16:08:39 +00:00
send_email.py
set_password.py
sso.py
state_deltas.py
stats.py
sync.py Faster joins: Fix spurious errors on incremental sync (#15232) 2023-03-09 14:18:39 +00:00
typing.py
user_directory.py Refresh remote profiles that have been marked as stale, in order to fill the user directory. [rei:userdirpriv] (#14756) 2023-03-16 11:44:11 +00:00