forked-synapse/synapse
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
..
_scripts Refactor media modules. (#15146) 2023-02-27 08:26:05 -05:00
api Update the error code for duplicate annotation (#15075) 2023-02-15 11:47:57 +00:00
app Add information on uploaded media to user export command. (#15107) 2023-02-23 13:14:17 -05:00
appservice Type hints for tests.appservice (#14990) 2023-02-06 12:49:06 +00:00
config Stabilize support for MSC3873: disambuguated event push keys. (#15190) 2023-03-07 11:27:57 -05:00
crypto Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
events Merge branch 'release-v1.79' into develop 2023-03-13 18:35:21 +00:00
federation Ensure fed-sender catchup does not block for full state (#15248) 2023-03-13 12:31:19 +00:00
handlers 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
http Pull in netaddr type hints. (#15231) 2023-03-09 07:09:49 -05:00
logging Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
media Refactor media modules. (#15146) 2023-02-27 08:26:05 -05:00
metrics Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
module_api Move Account Validity callbacks to a dedicated file (#15237) 2023-03-16 10:35:31 +00:00
push Stabilize support for MSC3873: disambuguated event push keys. (#15190) 2023-03-07 11:27:57 -05:00
replication Remove unused class: DirectTcpReplicationClientFactory. (#15272) 2023-03-15 15:42:20 -04:00
res Fix #11308 : Remove dependency on jquery on reCAPTCHA page (#14672) 2022-12-14 12:02:28 +00:00
rest Move Account Validity callbacks to a dedicated file (#15237) 2023-03-16 10:35:31 +00:00
server_notices Remove unused room_alias field from /createRoom response (#15093) 2023-02-22 11:07:28 +00:00
spam_checker_api Fix import in module_api module and docs on the new check_event_for_spam signature (#12918) 2022-05-31 12:04:53 +02:00
state Return read-only collections from @cached methods (#13755) 2023-02-10 23:29:00 +00:00
static Add viewport directive to HTML templates to optimise for mobile (#13493) 2022-08-11 14:04:20 +01:00
storage 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
streams Use mypy 1.0 (#15052) 2023-02-16 16:09:11 +00:00
types Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
util Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
__init__.py Remove dangling reference to being a reference implementation (#15167) 2023-02-27 20:08:18 +00:00
event_auth.py More speedups/fixes to creating batched events (#15195) 2023-03-07 13:54:39 -08:00
notifier.py Fix a bug in the send_local_online_presence_to module API (#14880) 2023-01-25 21:34:37 +00:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
server.py Move Account Validity callbacks to a dedicated file (#15237) 2023-03-16 10:35:31 +00:00
visibility.py Refactor filter_events_for_server (#15240) 2023-03-10 15:31:25 +00:00