-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Make user:report command scale #27099
Conversation
core/Command/User/Report.php
Outdated
'count-dirs', | ||
null, | ||
InputOption::VALUE_NONE, | ||
'Also count the number of user directories in the database (could time out on huge installations, there for defaults to no with 500+ users)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Also count the number of user directories in the database (could time out on huge installations, there for defaults to no with 500+ users)' | |
'Also count the number of user directories in the database (could time out on huge installations, therefore defaults to no with 500+ users)' |
core/Command/User/Report.php
Outdated
$rows[] = [' ']; | ||
$rows[] = ['user directories', $userDirectoryCount]; | ||
|
||
if ($total <= 500 || $input->getOption('count-dirs')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preferably in a const, but ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CS not happy, but code looks good 👍
Signed-off-by: Joas Schilling <[email protected]>
0e3b20b
to
f9b407d
Compare
@nickvergessen Backport down to 20? |
I guess it's fine |
/backport to stable21 |
/backport to stable20 |
The backport to stable21 failed. Please do this backport manually. |
The backport to stable20 failed. Please do this backport manually. |
/backport to stable21 |
/backport to stable20 |
Signed-off-by: Joas Schilling [email protected]