Callforusersthatloggedin stable9.1#27248
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.
put this in a separate inline function to avoid code duplication ?
There was a problem hiding this comment.
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) { |
|
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.
Almost there, adjust @since
| /** | ||
| * returns how many users have logged in once | ||
| * | ||
| * @return int |
There was a problem hiding this comment.
@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