Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Create directory items for new users when in bootstrap mode #27020

Merged
merged 1 commit into from
May 15, 2024

Conversation

OsamaSayegh
Copy link
Member

The users directory is updated on a daily cadence. However, when a site is new and doesn't have many users, it can be confusing that a user who has just joined doesn't show up in the users until a day after they join. To eliminate this confusion, this PR triggers a refresh for the users directory as soon as as a user joins, if the site is in bootstrap mode. The reason for the conditional trigger is that refreshing the users directory is an expensive operation and doing it often on a large site with many users could lead to performance problems.

Internal topic: t/126076.

@OsamaSayegh OsamaSayegh force-pushed the fix/create-directory-items-for-new-users branch from aed35f9 to 6457b7f Compare May 14, 2024 17:58
Copy link
Contributor

@martin-brennan martin-brennan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks Osama!

@OsamaSayegh OsamaSayegh merged commit e3ae57e into main May 15, 2024
16 checks passed
@OsamaSayegh OsamaSayegh deleted the fix/create-directory-items-for-new-users branch May 15, 2024 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants