Skip to content

Conversation

@kesselb
Copy link
Contributor

@kesselb kesselb commented Sep 14, 2023

Summary

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 its user count) in migrations.
2: The current check is wrong because countUsers returns an array. var_dump([] > 1000) => true ;)

TODO

  • CI

Checklist

@kesselb kesselb added bug 3. to review Waiting for reviews labels Sep 14, 2023
@kesselb kesselb added this to the Nextcloud 28 milestone Sep 14, 2023
@kesselb kesselb self-assigned this Sep 14, 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 <[email protected]>
@kesselb kesselb force-pushed the fix/noid/check-for-user-count branch from 89fd631 to 108916c Compare September 14, 2023 10:19
@kesselb
Copy link
Contributor Author

kesselb commented Sep 14, 2023

/backport to stable27

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 14, 2023
@kesselb kesselb merged commit 4a8bb59 into master Sep 15, 2023
@kesselb kesselb deleted the fix/noid/check-for-user-count branch September 15, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants