This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
When populating the user directory, query remote servers for user profiles instead of leaking the profiles in private rooms. [rei:userdirpriv] #15091
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #5677
Follows: #14756
Base:
rei/userdirpriv2_refresh_remotes
This pull request is commit-by-commit review friendly.
Original commit schedule, with full messages:
Rename method to make obvious it only applies to local users
Add another temporary table to the user directory background update for storing remote users needing lookup
Don't add private remote users straight to the user directory
Instead, queue them up to be added to the stale profile queue.
Add a background update stage to sort the remote users into the stale profile queue as appropriate
(ugly?) Kick off the fetching of remote profiles once ready
When we start populating the user directory, clear out the old tables first if they're there
When rebuilding user dir, schedule the new task
Schedule a user directory rebuild
Stacked PR Chain: rei:userdirpriv