-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Callforusersthatloggedin stable9.1 #27248
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
Conversation
* introduce callForSeenUsers and countSeenUsers * add tests * oracle should support not null on clob * since 9.2.0 Conflicts: lib/private/Repair/MoveAvatarOutsideHome.php lib/private/User/Manager.php tests/lib/User/ManagerTest.php
|
@jvillafanez, thanks for your PR! By analyzing the history of the files in this pull request, we identified @VicDeo, @PVince81 and @nickvergessen to be potential reviewers. |
|
Trashbin:expire -> only deleted one file with just the admin account logged in, and 225 LDAP users available: without patch: with patch: |
| }); | ||
| if (is_callable(array($this->userManager, 'callForSeenUsers'))) { | ||
| $this->userManager->callForSeenUsers(function(IUser $user) { | ||
| $uid = $user->getUID(); |
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.
put this in a separate inline function to avoid code duplication ?
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.
the other alternative is to store the name of the method in a string:
$methodName = 'callForSeenUsers';
$this->userManager->$methodName(...);| $this->expireTrashForUser($user); | ||
| }); | ||
| if (is_callable(array($this->userManager, 'callForSeenUsers'))) { | ||
| $this->userManager->callForSeenUsers(function(IUser $user) use ($p) { |
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.
same here
|
Version:expire (same as above) without patch: with patch: |
|
Expire versions background job: without patch (3 seconds): with patch (0 seconds): |
|
Expire trashbin background job: without patch (3 seconds): with patch (0 seconds): |
|
I think this is ready. |
PVince81
left a comment
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.
Almost there, adjust @since
| /** | ||
| * returns how many users have logged in once | ||
| * | ||
| * @return int |
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.
@since 9.1 here and below
|
👍 Jenkins tests passed but unpublished |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Backport of #26361 with some adjusments
Related Issue
Motivation and Context
How Has This Been Tested?
Not yet tested.
Screenshots (if appropriate):
Types of changes
Checklist:
@PVince81 @DeepDiver1975