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

[stable27] fix: use faster method to fetch user count #40433

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

backportbot-nextcloud[bot]
Copy link

Backport of #40416

@blizzz blizzz mentioned this pull request Sep 15, 2023
@blizzz blizzz added the 3. to review Waiting for reviews label Sep 15, 2023
countUsers: the actual user count reported by the backend.
countSeenUsers: count every user who was logged in once.

1: We should avoid expensive operations (like asking every backend for it's user count) in migrations.
2: The current check is wrong because countUsers returns an array. var_dump([] > 1000) => true ;)

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselb kesselb merged commit 42ed302 into stable27 Sep 18, 2023
37 checks passed
@kesselb kesselb deleted the backport/40416/stable27 branch September 18, 2023 15:59
@blizzz blizzz mentioned this pull request Sep 20, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants